Fix domain max-width in entity picker (#25400)
parent
8a0d3baf67
commit
d4fc0318f7
|
@ -178,7 +178,9 @@ export class HaEntityComboBox extends LitElement {
|
|||
: nothing}
|
||||
${item.domain_name && !showEntityId
|
||||
? html`
|
||||
<div slot="trailing-supporting-text">${item.domain_name}</div>
|
||||
<div slot="trailing-supporting-text" class="domain">
|
||||
${item.domain_name}
|
||||
</div>
|
||||
`
|
||||
: nothing}
|
||||
</ha-combo-box-item>
|
||||
|
|
|
@ -39,7 +39,7 @@ export class HaComboBoxItem extends HaMdListItem {
|
|||
font-family: var(--ha-font-family-code);
|
||||
font-size: var(--ha-font-size-xs);
|
||||
}
|
||||
[slot="trailing-supporting-text"] {
|
||||
::slotted(.domain) {
|
||||
font-size: var(--ha-font-size-s);
|
||||
font-weight: var(--ha-font-weight-normal);
|
||||
line-height: var(--ha-line-height-normal);
|
||||
|
|
|
@ -386,7 +386,7 @@ export class QuickBar extends LitElement {
|
|||
`
|
||||
: nothing}
|
||||
${item.translatedDomain && !showEntityId
|
||||
? html`<div slot="trailing-supporting-text">
|
||||
? html`<div slot="trailing-supporting-text" class="domain">
|
||||
${item.translatedDomain}
|
||||
</div>`
|
||||
: nothing}
|
||||
|
@ -1027,7 +1027,7 @@ export class QuickBar extends LitElement {
|
|||
font-size: var(--ha-font-size-xs);
|
||||
}
|
||||
|
||||
ha-md-list-item [slot="trailing-supporting-text"] {
|
||||
ha-md-list-item .domain {
|
||||
font-size: var(--ha-font-size-s);
|
||||
font-weight: var(--ha-font-weight-normal);
|
||||
line-height: var(--ha-line-height-normal);
|
||||
|
|
Loading…
Reference in New Issue