mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 15:26:36 +00:00
Fix dialog at the top
This commit is contained in:
parent
2ab4608884
commit
dc7ba0dac6
@ -178,8 +178,17 @@ class HuiGroupToggleDialog extends LitElement {
|
|||||||
haStyleDialog,
|
haStyleDialog,
|
||||||
css`
|
css`
|
||||||
ha-dialog {
|
ha-dialog {
|
||||||
|
/* Set the top top of the dialog to a fixed position, so it doesnt jump when the content changes size */
|
||||||
|
--vertical-align-dialog: flex-start;
|
||||||
|
--dialog-surface-margin-top: 40px;
|
||||||
--dialog-content-padding: 0;
|
--dialog-content-padding: 0;
|
||||||
}
|
}
|
||||||
|
@media all and (max-width: 450px), all and (max-height: 500px) {
|
||||||
|
/* When in fullscreen dialog should be attached to top */
|
||||||
|
ha-dialog {
|
||||||
|
--dialog-surface-margin-top: 0px;
|
||||||
|
}
|
||||||
|
}
|
||||||
.content {
|
.content {
|
||||||
padding: 0 16px 16px 16px;
|
padding: 0 16px 16px 16px;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user