mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-09 18:36:35 +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
|
||||
id="brokenImage"
|
||||
style=${styleMap({
|
||||
height: `${this._lastImageHeight || "100"}px`,
|
||||
display: this._loadError ? "block" : "none",
|
||||
})}
|
||||
></div>
|
||||
${this._loadError
|
||||
? html`<div
|
||||
id="brokenImage"
|
||||
style=${styleMap({
|
||||
height: `${this._lastImageHeight || "100"}px`,
|
||||
})}
|
||||
></div>`
|
||||
: ""}
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
|
@ -70,9 +70,12 @@ export class HuiPictureGlanceCardEditor extends LitElement
|
||||
}
|
||||
|
||||
get _image(): string {
|
||||
return this._config!.image || this._camera_image
|
||||
? ""
|
||||
: "https://www.home-assistant.io/images/merchandise/shirt-frontpage.png";
|
||||
return (
|
||||
this._config!.image ||
|
||||
(this._camera_image
|
||||
? ""
|
||||
: "https://www.home-assistant.io/images/merchandise/shirt-frontpage.png")
|
||||
);
|
||||
}
|
||||
|
||||
get _camera_image(): string {
|
||||
|
Loading…
x
Reference in New Issue
Block a user