Fix typo for fixed background attribute (#22707)

This commit is contained in:
Paul Bottein 2024-11-07 09:40:18 +01:00 committed by GitHub
parent a08c7a319f
commit 9b9adf3c7a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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