Fix domain max-width in entity picker (#25400)

pull/25411/head
Paul Bottein 2025-05-09 18:37:14 +02:00 committed by GitHub
parent 8a0d3baf67
commit d4fc0318f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 4 deletions

View File

@ -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>

View File

@ -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);

View File

@ -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);