Minor visual QB command tweaks (#7590)

This commit is contained in:
Philip Allgaier 2020-11-10 11:38:44 +01:00 committed by GitHub
parent fa28b480f1
commit b7bcf97365
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 6 deletions

View File

@ -182,14 +182,15 @@ export class QuickBar extends LitElement {
.twoline=${Boolean(item.altText)} .twoline=${Boolean(item.altText)}
.item=${item} .item=${item}
index=${ifDefined(index)} index=${ifDefined(index)}
hasMeta graphic="avatar"
graphic=${item.altText ? "avatar" : "icon"}
> >
<ha-icon .icon=${item.icon} slot="graphic"></ha-icon> <ha-icon .icon=${item.icon} slot="graphic"></ha-icon>
<span>${item.text}</span> <span class="item-text">${item.text}</span>
${item.altText ${item.altText
? html` ? html`
<span slot="secondary" class="secondary">${item.altText}</span> <span slot="secondary" class="item-text secondary"
>${item.altText}</span
>
` `
: null} : null}
</mwc-list-item> </mwc-list-item>
@ -387,6 +388,14 @@ export class QuickBar extends LitElement {
} }
} }
ha-icon {
margin-left: 8px;
}
ha-svg-icon {
color: var(--primary-text-color);
}
ha-svg-icon.prefix { ha-svg-icon.prefix {
margin: 8px; margin: 8px;
} }
@ -406,6 +415,10 @@ export class QuickBar extends LitElement {
mwc-list-item { mwc-list-item {
width: 100%; width: 100%;
} }
.item-text {
margin-left: 16px;
}
`, `,
]; ];
} }

View File

@ -1059,8 +1059,8 @@
"ping": "Reload ping binary sensor entities", "ping": "Reload ping binary sensor entities",
"filesize": "Reload file size entities", "filesize": "Reload file size entities",
"telegram": "Reload telegram notify services", "telegram": "Reload telegram notify services",
"smtp": "Reload smtp notify services", "smtp": "Reload SMTP notify services",
"mqtt": "Reload manually configured mqtt entities", "mqtt": "Reload manually configured MQTT entities",
"rpi_gpio": "Reload Raspberry Pi GPIO entities" "rpi_gpio": "Reload Raspberry Pi GPIO entities"
}, },
"server_management": { "server_management": {