fix: center card on landscape mobile

This commit is contained in:
2026-10-26 22:15:10 +01:00
parent dac9557749
commit 96d48d9c19
2 changed files with 96 additions and 16 deletions
+38 -7
View File
@@ -123,19 +123,26 @@ button,
}
}
/* Phone layout */
/* ---------- Phone layout ---------- */
@media (max-width: 768px) {
.stage {
align-items: center; /* tall content starts at top instead of being clipped */
align-items: flex-start;
justify-content: center;
padding: 8px;
padding: 12px 8px;
overflow-y: auto;
overflow-x: hidden;
min-height: 0;
-webkit-overflow-scrolling: touch;
}
.stage > * {
margin: auto;
margin: 0 auto;
flex-shrink: 0;
}
/* iOS zooms the page if an input's font is under 16px */
/* Prevent inputs from triggering iOS focus zoom */
input,
select,
textarea {
@@ -143,9 +150,33 @@ button,
}
}
/* Landscape phone: reclaim vertical space */
/* ---------- Landscape phone ---------- */
@media (max-height: 500px) and (orientation: landscape) {
.app {
height: 100vh;
height: 100dvh;
min-height: 0;
}
.stage {
padding: 4px;
align-items: flex-start;
justify-content: center;
padding: 8px;
overflow-y: auto;
overflow-x: hidden;
min-height: 0;
}
.stage > * {
margin: 0 auto;
flex-shrink: 0;
}
.add-dsp-form {
width: 100%;
max-width: 520px;
margin-top: 0;
margin-bottom: 8px;
}
}