Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/scss
diff options
context:
space:
mode:
authorShohei Yoshida <ysds.code@gmail.com>2020-02-29 10:59:36 +0300
committerXhmikosR <xhmikosr@gmail.com>2020-03-09 17:08:41 +0300
commitfa7510c6afc089ec2fa585789baabc3e3699a6dd (patch)
tree3fc1aea89b0fa6f7dd98fa2bcb79dab77d5018f0 /scss
parent69f36286f97018adc59e5d2ed64d7ea28dd9b5dc (diff)
Fix centered modal scrolling issue (#30244)
Use the `min-content` property.
Diffstat (limited to 'scss')
-rw-r--r--scss/_modal.scss2
1 files changed, 2 insertions, 0 deletions
diff --git a/scss/_modal.scss b/scss/_modal.scss
index 9053c173f8..a6d0f06512 100644
--- a/scss/_modal.scss
+++ b/scss/_modal.scss
@@ -83,6 +83,7 @@
&::before {
display: block; // IE10
height: subtract(100vh, $modal-dialog-margin * 2);
+ height: min-content; // Reset height to 0 except on IE
content: "";
}
@@ -217,6 +218,7 @@
&::before {
height: subtract(100vh, $modal-dialog-margin-y-sm-up * 2);
+ height: min-content;
}
}