mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-24 13:27:22 +00:00
Takes out column width variable
This commit is contained in:
parent
35941a58a5
commit
62d27a17d5
@ -30,7 +30,6 @@ interface Config extends LovelaceConfig {
|
||||
show_name?: boolean;
|
||||
show_state?: boolean;
|
||||
title?: string;
|
||||
column_width?: string;
|
||||
theming?: "primary";
|
||||
entities: EntityConfig[];
|
||||
}
|
||||
@ -65,10 +64,7 @@ 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 || columnWidth
|
||||
);
|
||||
this.style.setProperty("--glance-column-width", columnWidth);
|
||||
|
||||
if (config.theming) {
|
||||
if (typeof config.theming !== "string") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user