Render brand icon for repairs based on issue_domain (#13290)

This commit is contained in:
Paulus Schoutsen 2022-07-27 13:53:59 -07:00 committed by GitHub
parent a379d29a6c
commit afc69cb270
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -7,6 +7,7 @@ import type { DataEntryFlowStep } from "./data_entry_flow";
export interface RepairsIssue {
domain: string;
issue_domain?: string;
issue_id: string;
active: boolean;
is_fixable: boolean;

View File

@ -44,7 +44,7 @@ class HaConfigRepairs extends LitElement {
(issue) => html`
<ha-list-item
twoline
graphic="avatar"
graphic="medium"
.hasMeta=${!this.narrow}
.issue=${issue}
class=${issue.ignored ? "ignored" : ""}
@ -53,7 +53,7 @@ class HaConfigRepairs extends LitElement {
<img
loading="lazy"
src=${brandsUrl({
domain: issue.domain,
domain: issue.issue_domain || issue.domain,
type: "icon",
useFallback: true,
darkOptimized: this.hass.themes?.darkMode,
@ -114,6 +114,9 @@ class HaConfigRepairs extends LitElement {
.ignored {
opacity: var(--light-secondary-opacity);
}
ha-list-item {
--mdc-list-item-graphic-size: 40px;
}
button.show-more {
color: var(--primary-color);
text-align: left;