fix(modal): set card-style modal height using the --height css variable (#21453)

This commit is contained in:
Liam DeBeasi
2020-06-08 10:29:39 -04:00
committed by GitHub
parent 187917c746
commit a4f0bdb4c3

View File

@ -21,14 +21,14 @@
@media screen and (max-width: 767px) {
@supports (width: max(0px, 1px)) {
:host(.modal-card) .modal-wrapper {
height: calc(100% - max(30px, var(--ion-safe-area-top)) - 10px);
:host(.modal-card) {
--height: calc(100% - max(30px, var(--ion-safe-area-top)) - 10px);
}
}
@supports not (width: max(0px, 1px)) {
:host(.modal-card) .modal-wrapper {
height: calc(100% - 40px);
:host(.modal-card) {
--height: calc(100% - 40px);
}
}