Skip to content

Commit

Permalink
webapp: avoid inline style in inverter channel info card
Browse files Browse the repository at this point in the history
  • Loading branch information
schlimmchen authored and tbnobody committed Nov 1, 2024
1 parent 376912d commit 0aba159
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 1 addition & 2 deletions webapp/src/components/InverterChannelInfo.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<template>
<div
class="card"
class="card card-table"
:class="{
'border-info': channelType == 'AC',
'border-secondary': channelType == 'INV',
}"
style="overflow: hidden"
>
<div v-if="channelType == 'INV'" class="card-header text-bg-secondary">
{{ $t('inverterchannelinfo.General') }}
Expand Down
6 changes: 6 additions & 0 deletions webapp/src/scss/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,9 @@ table.table tr:last-child td {
table.table {
margin-bottom: 0;
}

div.card.card-table {
// prevent tables in cards from
// messing up the bottom corner radii
overflow: hidden;
}

0 comments on commit 0aba159

Please sign in to comment.