From f7103febdf1ecc6e276bff7b6bb443fd856ee3f5 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Thu, 7 Nov 2024 09:40:18 +0100 Subject: [PATCH] Fix typo for fixed background attribute (#22707) --- src/panels/lovelace/views/hui-view-container.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/panels/lovelace/views/hui-view-container.ts b/src/panels/lovelace/views/hui-view-container.ts index 6ea5969dea..bf74f55dc6 100644 --- a/src/panels/lovelace/views/hui-view-container.ts +++ b/src/panels/lovelace/views/hui-view-container.ts @@ -47,7 +47,7 @@ class HuiViewContainer extends LitElement { private _isFixedBackground(background?: BackgroundConfig) { if (typeof background === "string") { - return background.includes(" fixed"); + return background.split(" ").includes("fixed"); } return false; } @@ -126,7 +126,7 @@ class HuiViewContainer extends LitElement { ); background-attachment: scroll !important; } - :host(:not(fixed-background)) { + :host(:not([fixed-background])) { background: var( --view-background, var(--lovelace-background, var(--primary-background-color))