2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-24 14:04:09 +03:00

Fix centered modal scrolling issue (#30244)

Use the `min-content` property.
This commit is contained in:
Shohei Yoshida
2020-02-29 16:59:36 +09:00
committed by GitHub
parent ad8fd9e208
commit 40ac139bbe
+2
View 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: "";
}
@@ -216,6 +217,7 @@
&::before {
height: subtract(100vh, $modal-dialog-margin-y-sm-up * 2);
height: min-content;
}
}