]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix centered modal scrolling issue (#30244)
authorShohei Yoshida <ysds.code@gmail.com>
Sat, 29 Feb 2020 07:59:36 +0000 (16:59 +0900)
committerXhmikosR <xhmikosr@gmail.com>
Mon, 9 Mar 2020 14:08:41 +0000 (16:08 +0200)
Use the `min-content` property.

scss/_modal.scss

index 9053c173f8c3894c56f61c736071ab7a61230313..a6d0f065129ef6022093bcbfe6fcde62f09c4622 100644 (file)
@@ -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: "";
   }
 
 
     &::before {
       height: subtract(100vh, $modal-dialog-margin-y-sm-up * 2);
+      height: min-content;
     }
   }