mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-10 02:46:38 +00:00
Fix picture glance editor + small opti in hui image (#8692)
This commit is contained in:
parent
77972c961b
commit
af5b22a265
@ -159,13 +159,14 @@ export class HuiImage extends LitElement {
|
|||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
`}
|
`}
|
||||||
<div
|
${this._loadError
|
||||||
id="brokenImage"
|
? html`<div
|
||||||
style=${styleMap({
|
id="brokenImage"
|
||||||
height: `${this._lastImageHeight || "100"}px`,
|
style=${styleMap({
|
||||||
display: this._loadError ? "block" : "none",
|
height: `${this._lastImageHeight || "100"}px`,
|
||||||
})}
|
})}
|
||||||
></div>
|
></div>`
|
||||||
|
: ""}
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
@ -70,9 +70,12 @@ export class HuiPictureGlanceCardEditor extends LitElement
|
|||||||
}
|
}
|
||||||
|
|
||||||
get _image(): string {
|
get _image(): string {
|
||||||
return this._config!.image || this._camera_image
|
return (
|
||||||
? ""
|
this._config!.image ||
|
||||||
: "https://www.home-assistant.io/images/merchandise/shirt-frontpage.png";
|
(this._camera_image
|
||||||
|
? ""
|
||||||
|
: "https://www.home-assistant.io/images/merchandise/shirt-frontpage.png")
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
get _camera_image(): string {
|
get _camera_image(): string {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user