Skip to content

Commit c140347

Browse files
ysdsXhmikosR
andauthored
Fix scrollable modal (#31151)
Co-authored-by: XhmikosR <[email protected]>
1 parent d33a560 commit c140347

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scss/_modal.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,10 @@
5656
}
5757

5858
.modal-dialog-scrollable {
59-
max-height: subtract(100%, $modal-dialog-margin * 2);
59+
height: subtract(100%, $modal-dialog-margin * 2);
6060

6161
.modal-content {
62+
max-height: 100%;
6263
overflow: hidden;
6364
}
6465

@@ -177,7 +178,7 @@
177178
}
178179

179180
.modal-dialog-scrollable {
180-
max-height: subtract(100%, $modal-dialog-margin-y-sm-up * 2);
181+
height: subtract(100%, $modal-dialog-margin-y-sm-up * 2);
181182
}
182183

183184
.modal-dialog-centered {

0 commit comments

Comments
 (0)