mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +00:00
Prevent unwanted line breaks in picture-glance tooltips (#8819)
This commit is contained in:
parent
7aae55cde7
commit
cc275f9877
@ -255,13 +255,11 @@ class HuiPictureGlanceCard extends LitElement implements LovelaceCard {
|
|||||||
"state-on": !STATES_OFF.has(stateObj.state),
|
"state-on": !STATES_OFF.has(stateObj.state),
|
||||||
})}
|
})}
|
||||||
.icon=${entityConf.icon || stateIcon(stateObj)}
|
.icon=${entityConf.icon || stateIcon(stateObj)}
|
||||||
title=${`
|
title=${`${computeStateName(stateObj)} : ${computeStateDisplay(
|
||||||
${computeStateName(stateObj)} : ${computeStateDisplay(
|
|
||||||
this.hass!.localize,
|
this.hass!.localize,
|
||||||
stateObj,
|
stateObj,
|
||||||
this.hass!.locale
|
this.hass!.locale
|
||||||
)}
|
)}`}
|
||||||
`}
|
|
||||||
></ha-icon-button>
|
></ha-icon-button>
|
||||||
${this._config!.show_state !== true && entityConf.show_state !== true
|
${this._config!.show_state !== true && entityConf.show_state !== true
|
||||||
? html`<div class="state"></div>`
|
? html`<div class="state"></div>`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user