mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +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) {
|
setConfig(config) {
|
||||||
this._config = config;
|
this._config = config;
|
||||||
this.updateStyles({
|
this.style.setProperty(
|
||||||
"--glance-column-width": (config && config.column_width) || "20%",
|
"--glance-column-width",
|
||||||
});
|
(config && config.column_width) || "20%"
|
||||||
|
);
|
||||||
|
|
||||||
if (config && config.theming) {
|
if (config && config.theming) {
|
||||||
if (typeof config.theming !== "string") {
|
if (typeof config.theming !== "string") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user