mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +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(
|
||||
"--glance-column-width",
|
||||
config.column_width || "20%"
|
||||
config.column_width || columnWidth
|
||||
);
|
||||
|
||||
if (config.theming) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user