mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
fix(modal): modal displays in middle of screen on desktop (#23911)
This commit is contained in:
@ -65,9 +65,6 @@
|
|||||||
.modal-shadow {
|
.modal-shadow {
|
||||||
@include border-radius(var(--border-radius));
|
@include border-radius(var(--border-radius));
|
||||||
|
|
||||||
position: absolute;
|
|
||||||
bottom: 0;
|
|
||||||
|
|
||||||
width: var(--width);
|
width: var(--width);
|
||||||
min-width: var(--min-width);
|
min-width: var(--min-width);
|
||||||
max-width: var(--max-width);
|
max-width: var(--max-width);
|
||||||
@ -142,3 +139,9 @@
|
|||||||
:host(.modal-sheet) {
|
:host(.modal-sheet) {
|
||||||
--height: calc(100% - (var(--ion-safe-area-top) + 10px));
|
--height: calc(100% - (var(--ion-safe-area-top) + 10px));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:host(.modal-sheet) .modal-wrapper,
|
||||||
|
:host(.modal-sheet) .modal-shadow {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user