Fix centered modal scrolling issue (#30244)
Use the `min-content` property.
This commit is contained in:
parent
69f36286f9
commit
fa7510c6af
1 changed files with 2 additions and 0 deletions
|
|
@ -83,6 +83,7 @@
|
||||||
&::before {
|
&::before {
|
||||||
display: block; // IE10
|
display: block; // IE10
|
||||||
height: subtract(100vh, $modal-dialog-margin * 2);
|
height: subtract(100vh, $modal-dialog-margin * 2);
|
||||||
|
height: min-content; // Reset height to 0 except on IE
|
||||||
content: "";
|
content: "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -217,6 +218,7 @@
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
height: subtract(100vh, $modal-dialog-margin-y-sm-up * 2);
|
height: subtract(100vh, $modal-dialog-margin-y-sm-up * 2);
|
||||||
|
height: min-content;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue