From f77339ad85743a09e39c13b73086402a2d2af334 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Mon, 25 Oct 2021 03:55:26 -0700 Subject: [PATCH] =?UTF-8?q?Make=20all=20automation=20type=20pickers=20use?= =?UTF-8?q?=20natural=20width=20to=20be=20able=20to=20show=E2=80=A6=20(#10?= =?UTF-8?q?391)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ha-form/ha-form-select.ts | 1 + src/panels/config/automation/action/ha-automation-action-row.ts | 1 + .../automation/condition/ha-automation-condition-editor.ts | 1 + .../config/automation/trigger/ha-automation-trigger-row.ts | 1 + 4 files changed, 4 insertions(+) diff --git a/src/components/ha-form/ha-form-select.ts b/src/components/ha-form/ha-form-select.ts index 52288b6ece..2df5d03242 100644 --- a/src/components/ha-form/ha-form-select.ts +++ b/src/components/ha-form/ha-form-select.ts @@ -52,6 +52,7 @@ export class HaFormSelect extends LitElement implements HaFormElement { return html` ${this._processedTypes(this.hass.localize).map( diff --git a/src/panels/config/automation/condition/ha-automation-condition-editor.ts b/src/panels/config/automation/condition/ha-automation-condition-editor.ts index cac7f3af69..5370df85ba 100644 --- a/src/panels/config/automation/condition/ha-automation-condition-editor.ts +++ b/src/panels/config/automation/condition/ha-automation-condition-editor.ts @@ -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( diff --git a/src/panels/config/automation/trigger/ha-automation-trigger-row.ts b/src/panels/config/automation/trigger/ha-automation-trigger-row.ts index 51487ee054..3e8a6bee37 100644 --- a/src/panels/config/automation/trigger/ha-automation-trigger-row.ts +++ b/src/panels/config/automation/trigger/ha-automation-trigger-row.ts @@ -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(