Skip to content

Commit

Permalink
Set max-height for all modals (#5242)
Browse files Browse the repository at this point in the history
  • Loading branch information
WithoutPants authored Sep 11, 2024
1 parent b897de3 commit a383873
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ui/v2.5/src/components/Help/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions ui/v2.5/src/components/List/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ input[type="range"].zoom-slider {
}

.modal-body {
max-height: min(550px, calc(100vh - 12rem));
padding-left: 0;
padding-right: 0;
}
Expand All @@ -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;
Expand Down
6 changes: 6 additions & 0 deletions ui/v2.5/src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit a383873

Please sign in to comment.