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:
parent
696200a804
commit
b21e077154
@ -29,8 +29,8 @@
|
|||||||
aria-controls="'v-pills-' + inverter.serial"
|
aria-controls="'v-pills-' + inverter.serial"
|
||||||
aria-selected="true"
|
aria-selected="true"
|
||||||
>
|
>
|
||||||
<div class="row">
|
<div class="d-flex align-items-center">
|
||||||
<div class="col-auto col-sm-2">
|
<div class="me-2">
|
||||||
<BIconXCircleFill class="fs-4" v-if="!inverter.reachable" />
|
<BIconXCircleFill class="fs-4" v-if="!inverter.reachable" />
|
||||||
<BIconExclamationCircleFill
|
<BIconExclamationCircleFill
|
||||||
class="fs-4"
|
class="fs-4"
|
||||||
@ -38,7 +38,7 @@
|
|||||||
/>
|
/>
|
||||||
<BIconCheckCircleFill class="fs-4" v-if="inverter.reachable && inverter.producing" />
|
<BIconCheckCircleFill class="fs-4" v-if="inverter.reachable && inverter.producing" />
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-9">
|
<div class="ms-auto me-auto">
|
||||||
{{ inverter.name }}
|
{{ inverter.name }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user