Fix card editor size on mobile (#20976)

This commit is contained in:
Paul Bottein 2024-06-04 16:45:54 +02:00 committed by GitHub
parent 2dd7e598d5
commit 22c54b3fea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -417,6 +417,11 @@ export class HuiDialogEditCard
--dialog-content-padding: 24px 12px;
}
.content {
width: calc(90vw - 48px);
max-width: 1000px;
}
@media all and (max-width: 450px), all and (max-height: 500px) {
/* overrule the ha-style-dialog max-height on small screens */
ha-dialog {
@ -425,16 +430,15 @@ export class HuiDialogEditCard
--dialog-surface-top: 0px;
--mdc-dialog-max-width: 100vw;
}
}
.content {
width: 1000px;
max-width: calc(90vw - 48px);
.content {
width: 100%;
max-width: 100%;
}
}
@media all and (min-width: 451px) and (min-height: 501px) {
:host([large]) .content {
width: calc(90vw - 48px);
max-width: none;
}
}