mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-24 13:27:22 +00:00
Use style.setProperty instead of updateStyles
This commit is contained in:
parent
fbccf23d36
commit
74bdfc8c2d
@ -124,9 +124,10 @@ class HuiGlanceCard extends HassLocalizeLitMixin(EventsMixin(LitElement)) {
|
||||
|
||||
setConfig(config) {
|
||||
this._config = config;
|
||||
this.updateStyles({
|
||||
"--glance-column-width": (config && config.column_width) || "20%",
|
||||
});
|
||||
this.style.setProperty(
|
||||
"--glance-column-width",
|
||||
(config && config.column_width) || "20%"
|
||||
);
|
||||
|
||||
if (config && config.theming) {
|
||||
if (typeof config.theming !== "string") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user