UI: reduce height of main screen (#12507)

This commit is contained in:
Michael Geers 2024-02-27 21:32:42 +01:00 • committed by GitHub
parent 7b012b2b34
commit 80826f8d83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 5 deletions

View file

@ -12,7 +12,7 @@
{{ minSocLabel }}
</strong>
<strong v-else-if="targetChargeEnabled">
<span class="text-decoration-underline"> {{ targetTimeLabel() }}</span>
<span class="targetTimeLabel"> {{ targetTimeLabel() }}</span>
<div
class="extraValue text-nowrap"
:class="{ 'text-warning': planOverrun }"
@ -304,4 +304,7 @@ export default {
font-size: 14px;
text-decoration: none;
}
.targetTimeLabel {
text-decoration: underline;
}
</style>

View file

@ -8,7 +8,7 @@
<slot name="value">
<AnimatedNumber v-if="valueFmt" :to="value" :format="valueFmt" />
<span v-else>{{ value }}</span>
<div class="extraValue text-nowrap">
<div v-if="extraValue != null" class="extraValue text-nowrap">
{{ extraValue || "&nbsp;" }}
</div>
</slot>

View file

@ -42,7 +42,7 @@
}}
</div>
<div class="details d-flex align-items-start mb-3">
<div class="details d-flex align-items-start mb-2">
<div>
<div class="d-flex align-items-center">
<LabelAndValue

View file

@ -20,7 +20,7 @@
class="flex-grow-1"
:label="vehicleSocTitle"
:value="formattedSoc"
:extraValue="range ? `${fmtNumber(range, 0)} ${rangeUnit}` : null"
:extraValue="range ? `${fmtNumber(range, 0)} ${rangeUnit}` : ''"
data-testid="current-soc"
align="start"
/>
@ -29,7 +29,7 @@
class="flex-grow-1"
:label="$t('main.loadpoint.charged')"
:value="fmtEnergy(chargedEnergy)"
:extraValue="chargedSoc"
:extraValue="chargedSoc || ''"
data-testid="current-energy"
align="start"
/>