diff --git a/src/panels/config/backup/dialogs/dialog-download-decrypted-backup.ts b/src/panels/config/backup/dialogs/dialog-download-decrypted-backup.ts index 0c60a58798..747bdc8bb0 100644 --- a/src/panels/config/backup/dialogs/dialog-download-decrypted-backup.ts +++ b/src/panels/config/backup/dialogs/dialog-download-decrypted-backup.ts @@ -50,7 +50,7 @@ class DialogDownloadDecryptedBackup extends LitElement implements HassDialog { } protected render() { - if (!this._open || !this._params) { + if (!this._params) { return nothing; } @@ -180,13 +180,7 @@ class DialogDownloadDecryptedBackup extends LitElement implements HassDialog { haStyleDialog, css` ha-wa-dialog { - --dialog-content-padding: 8px 24px; - max-width: 500px; - } - @media all and (max-width: 450px), all and (max-height: 500px) { - ha-wa-dialog { - max-width: none; - } + --dialog-content-padding: var(--ha-space-2) var(--ha-space-6); } button.link {