]> 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)
committerGitHub <noreply@github.com>
Sat, 29 Feb 2020 07:59:36 +0000 (09:59 +0200)
Use the `min-content` property.

scss/_modal.scss

index 421e3e6400865ea9a98ff9a77d18ff6e4972e4d2..e43c70fbb4bb4046805b3a4147b96546041e2ec3 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;
     }
   }