mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-17 06:16:33 +00:00
don't round update entity images (#17972)
This commit is contained in:
parent
4b5c7021ff
commit
6179c75182
@ -131,11 +131,15 @@ export class StateBadge extends LitElement {
|
|||||||
if (this.hass) {
|
if (this.hass) {
|
||||||
imageUrl = this.hass.hassUrl(imageUrl);
|
imageUrl = this.hass.hassUrl(imageUrl);
|
||||||
}
|
}
|
||||||
if (computeDomain(stateObj.entity_id) === "camera") {
|
const domain = computeDomain(stateObj.entity_id);
|
||||||
|
if (domain === "camera") {
|
||||||
imageUrl = cameraUrlWithWidthHeight(imageUrl, 80, 80);
|
imageUrl = cameraUrlWithWidthHeight(imageUrl, 80, 80);
|
||||||
}
|
}
|
||||||
hostStyle.backgroundImage = `url(${imageUrl})`;
|
hostStyle.backgroundImage = `url(${imageUrl})`;
|
||||||
this._showIcon = false;
|
this._showIcon = false;
|
||||||
|
if (domain === "update") {
|
||||||
|
hostStyle.borderRadius = "0";
|
||||||
|
}
|
||||||
} else if (this.color) {
|
} else if (this.color) {
|
||||||
// Externally provided overriding color wins over state color
|
// Externally provided overriding color wins over state color
|
||||||
iconStyle.color = this.color;
|
iconStyle.color = this.color;
|
||||||
|
@ -86,7 +86,7 @@ class HaConfigUpdates extends SubscribeMixin(LitElement) {
|
|||||||
return html`
|
return html`
|
||||||
<ha-list-item
|
<ha-list-item
|
||||||
twoline
|
twoline
|
||||||
graphic="avatar"
|
graphic="medium"
|
||||||
class=${entity.attributes.skipped_version ? "skipped" : ""}
|
class=${entity.attributes.skipped_version ? "skipped" : ""}
|
||||||
.entity_id=${entity.entity_id}
|
.entity_id=${entity.entity_id}
|
||||||
.hasMeta=${!this.narrow}
|
.hasMeta=${!this.narrow}
|
||||||
@ -156,6 +156,9 @@ class HaConfigUpdates extends SubscribeMixin(LitElement) {
|
|||||||
.skipped {
|
.skipped {
|
||||||
background: var(--secondary-background-color);
|
background: var(--secondary-background-color);
|
||||||
}
|
}
|
||||||
|
ha-list-item {
|
||||||
|
--mdc-list-item-graphic-size: 40px;
|
||||||
|
}
|
||||||
ha-icon-next {
|
ha-icon-next {
|
||||||
color: var(--secondary-text-color);
|
color: var(--secondary-text-color);
|
||||||
height: 24px;
|
height: 24px;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user