Fix background on cast devices (#23731)
parent
d3e832c09b
commit
57a17b8663
|
@ -7,7 +7,6 @@
|
||||||
<%= renderTemplate("../../../src/html/_style_base.html.template") %>
|
<%= renderTemplate("../../../src/html/_style_base.html.template") %>
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
background-color: white;
|
|
||||||
font-size: initial;
|
font-size: initial;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -55,7 +55,7 @@ export class HUIViewBackground extends LitElement {
|
||||||
const alignment = background.alignment ?? "center";
|
const alignment = background.alignment ?? "center";
|
||||||
const size = background.size ?? "cover";
|
const size = background.size ?? "cover";
|
||||||
const repeat = background.repeat ?? "no-repeat";
|
const repeat = background.repeat ?? "no-repeat";
|
||||||
return `${alignment} / ${size} ${repeat} url('${background.image}')`;
|
return `${alignment} / ${size} ${repeat} url('${this.hass.hassUrl(background.image)}')`;
|
||||||
}
|
}
|
||||||
if (typeof background === "string") {
|
if (typeof background === "string") {
|
||||||
return background;
|
return background;
|
||||||
|
|
Loading…
Reference in New Issue