webapp: fix inverter selection button breaking

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.
This commit is contained in:
Bernhard Kirchen 2024-11-03 20:10:18 +01:00
parent 696200a804
commit b21e077154

View File

@ -29,8 +29,8 @@
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"
@ -38,7 +38,7 @@
/>
<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>