Fix typo for fixed background attribute (#22707)

This commit is contained in:
Paul Bottein 2024-11-07 09:40:18 +01:00 committed by Bram Kragten
parent 6e8c1f1a63
commit f7103febdf

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