Skip to content

Commit 58d24d5

Browse files
authored
Set different size for modal screen breakpoints (#441)
* Set different size for modal screen breakpoints * Better handle variable width and height * Let's do dynamic sizing
1 parent a67674b commit 58d24d5

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

static/src/global/app.css

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,22 @@ ion-content::part(scroll) {
155155
touch-action: pan-y pinch-zoom;
156156
}
157157

158-
@media (max-width: 991.98px) {
159-
.justify-content-center-lg-down {
160-
justify-content: center !important;
158+
@media only screen and (max-width: 575.98px) and (max-height: 575.98px) {
159+
ion-model {
160+
--width: 100%;
161+
--height: 100%;
162+
}
163+
}
164+
165+
@media only screen and (min-width: 576px) and (min-height: 576px) {
166+
ion-modal {
167+
--width: 90%;
168+
--max-width: 1000px;
169+
--height: 90%;
170+
--max-height: 1000px;
171+
--ion-safe-area-top: 0px;
172+
--ion-safe-area-bottom: 0px;
173+
--ion-safe-area-right: 0px;
174+
--ion-safe-area-left: 0px;
161175
}
162176
}

0 commit comments

Comments
 (0)