Skip to content

Commit 962a4cc

Browse files
Improve scrolling behavior in edit preset modal (mcmonkeyprojects#832)
* Preset modal now only scrolls the body so title and save/cancel buttons are accessible without scrolling * format fix --------- Co-authored-by: Alex "mcmonkey" Goodwin <[email protected]>
1 parent 56c5b9c commit 962a4cc

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/wwwroot/css/genpage.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,21 @@ body {
587587
.modal_success_bottom {
588588
color: #00ff00;
589589
}
590+
#add_preset_modal {
591+
max-height: calc(95vh - var(--bs-modal-margin));
592+
margin-top: var(--bs-modal-margin);
593+
}
594+
#add_preset_modal .modal-dialog {
595+
margin-top: 0;
596+
margin-bottom: 0;
597+
height: 100%;
598+
}
599+
#add_preset_modal .modal-content {
600+
height: 100%;
601+
}
602+
#add_preset_modal .modal-body {
603+
overflow-y: auto;
604+
}
590605
.preset-block-selected {
591606
border: 1px solid var(--box-selected-border);
592607
background-color: var(--box-selected-background);

0 commit comments

Comments
 (0)