diff options
| author | Shohei Yoshida <[email protected]> | 2020-02-29 16:59:36 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-02-29 09:59:36 +0200 |
| commit | 40ac139bbe05874fb9c96ec6c453a847596dc555 (patch) | |
| tree | 3090bc3e32a27554329a9f65b7544e2287a90686 /scss/_modal.scss | |
| parent | ad8fd9e20845124a1bf86c5d18b1f1e19f395e1f (diff) | |
| download | bootstrap-40ac139bbe05874fb9c96ec6c453a847596dc555.tar.xz bootstrap-40ac139bbe05874fb9c96ec6c453a847596dc555.zip | |
Fix centered modal scrolling issue (#30244)
Use the `min-content` property.
Diffstat (limited to 'scss/_modal.scss')
| -rw-r--r-- | scss/_modal.scss | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scss/_modal.scss b/scss/_modal.scss index 421e3e640..e43c70fbb 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: ""; } @@ -216,6 +217,7 @@ &::before { height: subtract(100vh, $modal-dialog-margin-y-sm-up * 2); + height: min-content; } } |
