Changing Clance Column width default to fill card

This commit is contained in:
Zack Arnett 2018-10-16 16:20:28 -04:00
parent a6b4cce7f3
commit 698beedaa2

View File

@ -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) {