Make all automation type pickers use natural width to be able to show… (#10391)

This commit is contained in:
Paulus Schoutsen 2021-10-25 03:55:26 -07:00 committed by GitHub
parent da73b316ff
commit f77339ad85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 0 deletions

View File

@ -52,6 +52,7 @@ export class HaFormSelect extends LitElement implements HaFormElement {
return html`
<mwc-select
fixedMenuPosition
naturalMenuWidth
.label=${this.label}
.value=${this.data}
.disabled=${this.disabled}

View File

@ -230,6 +230,7 @@ export default class HaAutomationActionRow extends LitElement {
"ui.panel.config.automation.editor.actions.type_select"
)}
.value=${getType(this.action)}
naturalMenuWidth
@selected=${this._typeChanged}
>
${this._processedTypes(this.hass.localize).map(

View File

@ -90,6 +90,7 @@ export default class HaAutomationConditionEditor extends LitElement {
"ui.panel.config.automation.editor.conditions.type_select"
)}
.value=${this.condition.condition}
naturalMenuWidth
@selected=${this._typeChanged}
>
${this._processedTypes(this.hass.localize).map(

View File

@ -179,6 +179,7 @@ export default class HaAutomationTriggerRow extends LitElement {
"ui.panel.config.automation.editor.triggers.type_select"
)}
.value=${this.trigger.platform}
naturalMenuWidth
@selected=${this._typeChanged}
>
${this._processedTypes(this.hass.localize).map(