0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

Fix scrollable modal (#31151)

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
Shohei Yoshida 2020-06-25 15:43:19 +09:00 committed by GitHub
parent d33a560dd6
commit c140347bd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,9 +56,10 @@
} }
.modal-dialog-scrollable { .modal-dialog-scrollable {
max-height: subtract(100%, $modal-dialog-margin * 2); height: subtract(100%, $modal-dialog-margin * 2);
.modal-content { .modal-content {
max-height: 100%;
overflow: hidden; overflow: hidden;
} }
@ -177,7 +178,7 @@
} }
.modal-dialog-scrollable { .modal-dialog-scrollable {
max-height: subtract(100%, $modal-dialog-margin-y-sm-up * 2); height: subtract(100%, $modal-dialog-margin-y-sm-up * 2);
} }
.modal-dialog-centered { .modal-dialog-centered {