webapp: fixup battery total cards
the total cards have been trimmed at the bottom as the card's last child has its margin-bottom removed (set to "auto"). that is desired as it places the text in the middle of the cards. however, the battery total cards are different, as they show two values each, which are arranged by div.flex-fill containers, which are the children of the cards rather than the h2 tags as in all other totals cards.
This commit is contained in:
parent
50db50174e
commit
db5520452d
@ -99,7 +99,7 @@
|
||||
:text="$t('invertertotalinfo.BatteryCharge')"
|
||||
>
|
||||
<div class="flex-fill" v-if="totalBattData.soc">
|
||||
<h2>
|
||||
<h2 class="mb-0">
|
||||
{{
|
||||
$n(totalBattData.soc.v, 'decimal', {
|
||||
minimumFractionDigits: totalBattData.soc.d,
|
||||
@ -111,7 +111,7 @@
|
||||
</div>
|
||||
|
||||
<div class="flex-fill" v-if="totalBattData.voltage">
|
||||
<h2>
|
||||
<h2 class="mb-0">
|
||||
{{
|
||||
$n(totalBattData.voltage.v, 'decimal', {
|
||||
minimumFractionDigits: totalBattData.voltage.d,
|
||||
@ -131,7 +131,7 @@
|
||||
:text="$t('invertertotalinfo.BatteryPower')"
|
||||
>
|
||||
<div class="flex-fill" v-if="totalBattData.power">
|
||||
<h2>
|
||||
<h2 class="mb-0">
|
||||
{{
|
||||
$n(totalBattData.power.v, 'decimal', {
|
||||
minimumFractionDigits: totalBattData.power.d,
|
||||
@ -143,7 +143,7 @@
|
||||
</div>
|
||||
|
||||
<div class="flex-fill" v-if="totalBattData.current">
|
||||
<h2>
|
||||
<h2 class="mb-0">
|
||||
{{
|
||||
$n(totalBattData.current.v, 'decimal', {
|
||||
minimumFractionDigits: totalBattData.current.d,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user