mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-09 18:36:35 +00:00
Fix typo for fixed background attribute (#22707)
This commit is contained in:
parent
6e8c1f1a63
commit
f7103febdf
@ -47,7 +47,7 @@ class HuiViewContainer extends LitElement {
|
|||||||
|
|
||||||
private _isFixedBackground(background?: BackgroundConfig) {
|
private _isFixedBackground(background?: BackgroundConfig) {
|
||||||
if (typeof background === "string") {
|
if (typeof background === "string") {
|
||||||
return background.includes(" fixed");
|
return background.split(" ").includes("fixed");
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -126,7 +126,7 @@ class HuiViewContainer extends LitElement {
|
|||||||
);
|
);
|
||||||
background-attachment: scroll !important;
|
background-attachment: scroll !important;
|
||||||
}
|
}
|
||||||
:host(:not(fixed-background)) {
|
:host(:not([fixed-background])) {
|
||||||
background: var(
|
background: var(
|
||||||
--view-background,
|
--view-background,
|
||||||
var(--lovelace-background, var(--primary-background-color))
|
var(--lovelace-background, var(--primary-background-color))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user