mirror of
https://github.com/Matysh/houseplan-card
synced 2026-07-31 16:38:31 +00:00
device icon: the size multiplier scales the glyph, not just the badge
User report via the owner: change a marker's size and the icon stays at its default size — a big empty box around a small glyph. The badge, ripple and value badges all derive from --dev-size (base size x per-device multiplier), but --mdc-icon-size was pinned to the BASE --icon-size, so the multiplier never reached the glyph. One calc argument: --dev-size. New smoke_icon_scale: at size 3 the glyph grows with the badge and keeps the 0.62 proportion. Inventory: 147 / 51 / 43 / 69.
This commit is contained in:
Vendored
+5
-1
@@ -942,7 +942,11 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
||||
z-index: 2;
|
||||
}
|
||||
.dev ha-icon {
|
||||
--mdc-icon-size: calc(var(--icon-size, 2.5cqw) * 0.62);
|
||||
/* from --dev-size, NOT --icon-size: the per-device size multiplier must
|
||||
scale the GLYPH with its badge. Pinned to the base size, "make this
|
||||
icon bigger" grew an empty box around a default-size glyph (user
|
||||
report via the owner, 2026-07-29). */
|
||||
--mdc-icon-size: calc(var(--dev-size, var(--icon-size, 2.5cqw)) * 0.62);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
Reference in New Issue
Block a user