Changing Clance Column width default to fill card
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…
Reference in New Issue