mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-20 15:56:35 +00:00
Fix chart tooltip footer always rendering (#9614)
This commit is contained in:
parent
32c6fb14dd
commit
b05dc5141c
@ -136,12 +136,9 @@ export default class HaChartBase extends LitElement {
|
|||||||
)}
|
)}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
${this._tooltip.footer
|
${this._tooltip.footer.length
|
||||||
? // footer has white-space: pre;
|
? html`<div class="footer">
|
||||||
// prettier-ignore
|
${this._tooltip.footer.map((item) => html`${item}<br />`)}
|
||||||
html`<div class="footer">${Array.isArray(this._tooltip.footer)
|
|
||||||
? this._tooltip.footer.join("\n")
|
|
||||||
: this._tooltip.footer}
|
|
||||||
</div>`
|
</div>`
|
||||||
: ""}
|
: ""}
|
||||||
</div>`
|
</div>`
|
||||||
@ -324,7 +321,6 @@ export default class HaChartBase extends LitElement {
|
|||||||
}
|
}
|
||||||
.chartTooltip .footer {
|
.chartTooltip .footer {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
white-space: pre;
|
|
||||||
}
|
}
|
||||||
.chartTooltip .beforeBody {
|
.chartTooltip .beforeBody {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user