mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-10 10:56:34 +00:00
Consistent blank before "%" (#8366)
This commit is contained in:
parent
b71f452795
commit
c8ea37eec0
@ -28,7 +28,7 @@ class SupervisorMetric extends LitElement {
|
|||||||
</span>
|
</span>
|
||||||
<div slot="description" .title=${this.tooltip ?? ""}>
|
<div slot="description" .title=${this.tooltip ?? ""}>
|
||||||
<span class="value">
|
<span class="value">
|
||||||
${roundedValue}%
|
${roundedValue} %
|
||||||
</span>
|
</span>
|
||||||
<ha-bar
|
<ha-bar
|
||||||
class="${classMap({
|
class="${classMap({
|
||||||
|
@ -154,8 +154,8 @@ class HassioHostInfo extends LitElement {
|
|||||||
)}
|
)}
|
||||||
</span>
|
</span>
|
||||||
<span slot="description">
|
<span slot="description">
|
||||||
${this.supervisor.host.disk_life_time - 10}% -
|
${this.supervisor.host.disk_life_time - 10} % -
|
||||||
${this.supervisor.host.disk_life_time}%
|
${this.supervisor.host.disk_life_time} %
|
||||||
</span>
|
</span>
|
||||||
</ha-settings-row>`
|
</ha-settings-row>`
|
||||||
: ""}
|
: ""}
|
||||||
|
@ -101,7 +101,7 @@ class HaClimateState extends LitElement {
|
|||||||
)}-${formatNumber(
|
)}-${formatNumber(
|
||||||
this.stateObj.attributes.target_humidity_high,
|
this.stateObj.attributes.target_humidity_high,
|
||||||
this.hass!.language
|
this.hass!.language
|
||||||
)}%`;
|
)} %`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.stateObj.attributes.humidity != null) {
|
if (this.stateObj.attributes.humidity != null) {
|
||||||
|
@ -123,7 +123,7 @@ class MoreInfoVacuum extends LitElement {
|
|||||||
<div>
|
<div>
|
||||||
<span>
|
<span>
|
||||||
<ha-icon .icon=${stateObj.attributes.battery_icon}></ha-icon>
|
<ha-icon .icon=${stateObj.attributes.battery_icon}></ha-icon>
|
||||||
${stateObj.attributes.battery_level}%
|
${stateObj.attributes.battery_level} %
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
|
@ -226,7 +226,7 @@ export class HaConfigDevicePage extends LitElement {
|
|||||||
batteryState
|
batteryState
|
||||||
? html`
|
? html`
|
||||||
<div class="battery">
|
<div class="battery">
|
||||||
${batteryIsBinary ? "" : batteryState.state + "%"}
|
${batteryIsBinary ? "" : batteryState.state + " %"}
|
||||||
<ha-battery-icon
|
<ha-battery-icon
|
||||||
.hass=${this.hass!}
|
.hass=${this.hass!}
|
||||||
.batteryStateObj=${batteryState}
|
.batteryStateObj=${batteryState}
|
||||||
|
@ -283,8 +283,8 @@ export class HaConfigDeviceDashboard extends LitElement {
|
|||||||
title: this.hass.localize("ui.panel.config.devices.data_table.battery"),
|
title: this.hass.localize("ui.panel.config.devices.data_table.battery"),
|
||||||
sortable: true,
|
sortable: true,
|
||||||
type: "numeric",
|
type: "numeric",
|
||||||
width: narrow ? "90px" : "15%",
|
width: narrow ? "95px" : "15%",
|
||||||
maxWidth: "90px",
|
maxWidth: "95px",
|
||||||
template: (batteryEntityPair: DeviceRowData["battery_entity"]) => {
|
template: (batteryEntityPair: DeviceRowData["battery_entity"]) => {
|
||||||
const battery =
|
const battery =
|
||||||
batteryEntityPair && batteryEntityPair[0]
|
batteryEntityPair && batteryEntityPair[0]
|
||||||
@ -298,7 +298,7 @@ export class HaConfigDeviceDashboard extends LitElement {
|
|||||||
battery && computeStateDomain(battery) === "binary_sensor";
|
battery && computeStateDomain(battery) === "binary_sensor";
|
||||||
return battery && (batteryIsBinary || !isNaN(battery.state as any))
|
return battery && (batteryIsBinary || !isNaN(battery.state as any))
|
||||||
? html`
|
? html`
|
||||||
${batteryIsBinary ? "" : battery.state + "%"}
|
${batteryIsBinary ? "" : battery.state + " %"}
|
||||||
<ha-battery-icon
|
<ha-battery-icon
|
||||||
.hass=${this.hass!}
|
.hass=${this.hass!}
|
||||||
.batteryStateObj=${battery}
|
.batteryStateObj=${battery}
|
||||||
|
@ -129,7 +129,7 @@ class HuiGenericEntityRow extends LitElement {
|
|||||||
stateObj.attributes.brightness
|
stateObj.attributes.brightness
|
||||||
? html`${Math.round(
|
? html`${Math.round(
|
||||||
(stateObj.attributes.brightness / 255) * 100
|
(stateObj.attributes.brightness / 255) * 100
|
||||||
)}%`
|
)} %`
|
||||||
: "")}
|
: "")}
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
|
@ -52,7 +52,7 @@ class HuiHumidifierEntityRow extends LitElement implements LovelaceRow {
|
|||||||
.config=${this._config}
|
.config=${this._config}
|
||||||
.secondaryText=${stateObj.attributes.humidity
|
.secondaryText=${stateObj.attributes.humidity
|
||||||
? `${this.hass!.localize("ui.card.humidifier.humidity")}:
|
? `${this.hass!.localize("ui.card.humidifier.humidity")}:
|
||||||
${stateObj.attributes.humidity}%${
|
${stateObj.attributes.humidity} %${
|
||||||
stateObj.attributes.mode
|
stateObj.attributes.mode
|
||||||
? ` (${
|
? ` (${
|
||||||
this.hass!.localize(
|
this.hass!.localize(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user