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
3 changed files with 12 additions and 2 deletions

View File

@@ -21,6 +21,11 @@
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-toc {
max-height: calc(100vh - 10rem);

View File

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

View File

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