mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-02 05:57:54 +00:00
Stupid mistake
This commit is contained in:
parent
67706a312d
commit
30e5611812
@ -79,6 +79,8 @@ export class HuiMediaControlCard extends LitElement implements LovelaceCard {
|
|||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const picture = this._image || "../static/images/card_media_player_bg.png";
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
<ha-card>
|
<ha-card>
|
||||||
<div
|
<div
|
||||||
@ -89,7 +91,7 @@ export class HuiMediaControlCard extends LitElement implements LovelaceCard {
|
|||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="image"
|
class="image"
|
||||||
style="background-image: url(${this.hass.hassUrl(this._image)})"
|
style="background-image: url(${this.hass.hassUrl(picture)})"
|
||||||
></div>
|
></div>
|
||||||
<div
|
<div
|
||||||
class="${classMap({
|
class="${classMap({
|
||||||
@ -295,7 +297,6 @@ export class HuiMediaControlCard extends LitElement implements LovelaceCard {
|
|||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-color: var(--primary-color);
|
background-color: var(--primary-color);
|
||||||
background-size: initial;
|
background-size: initial;
|
||||||
background-image: "url(../static/images/card_media_player_bg.png)";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-image > .caption {
|
.no-image > .caption {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user