mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 01:36:49 +00:00
Add icons to info panel (#5501)
* Add icons to info panel * Update src/panels/developer-tools/info/integrations-card.ts Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
parent
bd98ce8c25
commit
b632ea6f86
@ -30,6 +30,16 @@ class IntegrationsCard extends LitElement {
|
|||||||
${this._sortedIntegrations(this.hass!.config.components).map(
|
${this._sortedIntegrations(this.hass!.config.components).map(
|
||||||
(domain) => html`
|
(domain) => html`
|
||||||
<tr>
|
<tr>
|
||||||
|
<td>
|
||||||
|
<img
|
||||||
|
loading="lazy"
|
||||||
|
src="https://brands.home-assistant.io/_/${domain}/icon.png"
|
||||||
|
srcset="
|
||||||
|
https://brands.home-assistant.io/_/${domain}/icon@2x.png 2x
|
||||||
|
"
|
||||||
|
referrerpolicy="no-referrer"
|
||||||
|
/>
|
||||||
|
</td>
|
||||||
<td>${domain}</td>
|
<td>${domain}</td>
|
||||||
<td>
|
<td>
|
||||||
<a
|
<a
|
||||||
@ -67,6 +77,11 @@ class IntegrationsCard extends LitElement {
|
|||||||
td:first-child {
|
td:first-child {
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
}
|
}
|
||||||
|
img {
|
||||||
|
display: block;
|
||||||
|
max-height: 24px;
|
||||||
|
max-width: 24px;
|
||||||
|
}
|
||||||
a {
|
a {
|
||||||
color: var(--primary-color);
|
color: var(--primary-color);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user