mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-20 15:56:35 +00:00
Changing Clance Column width default to fill card
This commit is contained in:
parent
a6b4cce7f3
commit
698beedaa2
@ -62,9 +62,11 @@ class HuiGlanceCard extends HassLocalizeLitMixin(LitElement)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const columnWidth = config.entities.length > 4 ? "20%" : `${100 / config.entities.length}%`
|
||||||
|
|
||||||
this.style.setProperty(
|
this.style.setProperty(
|
||||||
"--glance-column-width",
|
"--glance-column-width",
|
||||||
config.column_width || "20%"
|
config.column_width || columnWidth
|
||||||
);
|
);
|
||||||
|
|
||||||
if (config.theming) {
|
if (config.theming) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user