1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-02-14 23:18:21 +00:00

Add Percentage in distribution card tooltip (#29555)

Add Percentage in tooltip
This commit is contained in:
sebcaps
2026-02-11 08:06:56 +01:00
committed by GitHub
parent 678ee7e82a
commit 541cc7d10b

View File

@@ -61,6 +61,7 @@ class HaSegmentedBar extends LitElement {
: html`
<ha-tooltip for="segment-${index}" placement="top">
${segment.label}
(${((segment.value / totalValue) * 100).toFixed(1)}%)
</ha-tooltip>
`}
<div