mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 16:26:43 +00:00
Fix background on cast devices (#23731)
This commit is contained in:
parent
b28e7d2f06
commit
6b471ba6e7
@ -7,7 +7,6 @@
|
||||
<%= renderTemplate("../../../src/html/_style_base.html.template") %>
|
||||
<style>
|
||||
body {
|
||||
background-color: white;
|
||||
font-size: initial;
|
||||
}
|
||||
</style>
|
||||
|
@ -55,7 +55,7 @@ export class HUIViewBackground extends LitElement {
|
||||
const alignment = background.alignment ?? "center";
|
||||
const size = background.size ?? "cover";
|
||||
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") {
|
||||
return background;
|
||||
|
Loading…
x
Reference in New Issue
Block a user