Fix zone dialog rendering wider than the window (#17642)

This commit is contained in:
karwosts 2023-08-30 04:37:50 -07:00 committed by GitHub
parent ca1a183512
commit 099e317d17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -236,7 +236,7 @@ class DialogZoneDetail extends LitElement {
haStyleDialog,
css`
ha-dialog {
--mdc-dialog-min-width: 600px;
--mdc-dialog-min-width: min(600px, 95vw);
}
@media all and (max-width: 450px), all and (max-height: 500px) {
ha-dialog {

View File

@ -299,6 +299,7 @@ export const haStyleDialog = css`
ha-dialog {
--mdc-dialog-min-width: 400px;
--mdc-dialog-max-width: 600px;
--mdc-dialog-max-width: min(600px, 95vw);
--justify-action-buttons: space-between;
}