Skip to content

Commit

Permalink
webapp: fix inverter selection button breaking
Browse files Browse the repository at this point in the history
on small viewports, the icon and the inverter label would be displayed
in two lines. this change keeps the icon and the label tied together in
any case, and the icon is centered vertically around the label.
  • Loading branch information
schlimmchen committed Nov 3, 2024
1 parent f9b84a0 commit 8a2192e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webapp/src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@
aria-controls="'v-pills-' + inverter.serial"
aria-selected="true"
>
<div class="row">
<div class="col-auto col-sm-2">
<div class="d-flex align-items-center">
<div class="me-2">
<BIconXCircleFill class="fs-4" v-if="!inverter.reachable" />
<BIconExclamationCircleFill
class="fs-4"
v-if="inverter.reachable && !inverter.producing"
/>
<BIconCheckCircleFill class="fs-4" v-if="inverter.reachable && inverter.producing" />
</div>
<div class="col-sm-9">
<div class="ms-auto me-auto">
{{ inverter.name }}
</div>
</div>
Expand Down

0 comments on commit 8a2192e

Please sign in to comment.