Skip to content

Commit 137b853

Browse files
dialogs: Fix modal dialog position
1 parent 543f299 commit 137b853

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

theme/parts/dialogs.css

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,18 @@ window {
66
padding: 0 !important;
77
}
88

9-
/* Browser dialog prompts center */
10-
.dialogOverlay {
11-
display: grid;
12-
place-content: center;
9+
#window-modal-dialog {
10+
display: flex;
1311
justify-content: center;
14-
grid-auto-rows: min(90%, var(--doc-height-px));
12+
align-items: center;
13+
height: 100vh;
1514
}
15+
16+
/* Browser dialog prompts center */
1617
.dialogOverlay[topmost="true"]:not(.dialogOverlay-window-modal-dialog-subdialog), #window-modal-dialog::backdrop {
1718
background-color: rgba(0, 0, 0, .5) !important;
1819
}
1920

20-
#window-modal-dialog {
21-
margin-top: auto !important;
22-
}
23-
2421
/* Dialog */
2522
.dialogBox {
2623
border-radius: 12px !important;

0 commit comments

Comments
 (0)