From e137e695ec6e8434b3436814589e7a6c66e35b78 Mon Sep 17 00:00:00 2001 From: Jan-Philipp Benecke Date: Tue, 7 Jan 2025 14:13:19 +0100 Subject: [PATCH] Set fixed width for automation save dialog (#23618) --- .../automation-rename-dialog/dialog-automation-rename.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/panels/config/automation/automation-rename-dialog/dialog-automation-rename.ts b/src/panels/config/automation/automation-rename-dialog/dialog-automation-rename.ts index f9a829d61826..d484b7527814 100644 --- a/src/panels/config/automation/automation-rename-dialog/dialog-automation-rename.ts +++ b/src/panels/config/automation/automation-rename-dialog/dialog-automation-rename.ts @@ -323,6 +323,14 @@ class DialogAutomationRename extends LitElement implements HassDialog { ha-dialog { --dialog-content-padding: 0 24px 24px 24px; } + + @media all and (min-width: 500px) { + ha-dialog { + --mdc-dialog-min-width: min(500px, 95vw); + --mdc-dialog-max-width: min(500px, 95vw); + } + } + ha-textfield, ha-textarea, ha-icon-picker,