Set max-height for all modals (#5242)

This commit is contained in:
WithoutPants 2024-09-11 11:55:06 +10:00 committed by GitHub
parent b897de3e5e
commit a3838734c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 2 deletions

View file

@ -21,6 +21,11 @@
padding-left: 2rem; padding-left: 2rem;
} }
.modal-body {
// reset max-height so that we don't end up with two scroll bars
max-height: initial;
}
.manual-content, .manual-content,
.manual-toc { .manual-toc {
max-height: calc(100vh - 10rem); max-height: calc(100vh - 10rem);

View file

@ -154,6 +154,7 @@ input[type="range"].zoom-slider {
} }
.modal-body { .modal-body {
max-height: min(550px, calc(100vh - 12rem));
padding-left: 0; padding-left: 0;
padding-right: 0; padding-right: 0;
} }
@ -166,8 +167,6 @@ input[type="range"].zoom-slider {
.criterion-list { .criterion-list {
flex-direction: column; flex-direction: column;
flex-wrap: nowrap; flex-wrap: nowrap;
max-height: 550px;
overflow-y: auto;
.pinned-criterion-divider { .pinned-criterion-divider {
padding-bottom: 2.5rem; padding-bottom: 2.5rem;

View file

@ -1385,3 +1385,9 @@ select {
.table-list .rating-number { .table-list .rating-number {
width: 6rem; width: 6rem;
} }
.modal-body {
max-height: calc(100vh - 12rem);
overflow-y: auto;
padding-right: 1.5rem;
}