Fixed height rendering issues on mobile when browser bar is present.

This commit is contained in:
Jay
2025-07-20 13:41:17 -04:00
parent 30bab276a1
commit b57af5f518
2 changed files with 18 additions and 6 deletions
+12 -6
View File
@@ -1,13 +1,20 @@
.appWrapper { .appWrapper {
height: 100vh; height: 100%;
width: 100%; width: 100%;
overflow: hidden; overflow: hidden;
} }
.mobileContent,
.mainContent,
.tabWrapper,
.tabWrapper .tab {
height: 100%;
}
/* Large */ /* Large */
@media (min-width: 992px), @media (min-width: 992px),
(min-width: 568px) and (max-width: 991px) and (orientation: portrait) { (min-width: 568px) and (max-width: 991px) and (orientation: portrait) {
.appContainer { .appWrapper {
max-width: 1200px; max-width: 1200px;
margin: 0 auto; margin: 0 auto;
} }
@@ -43,7 +50,7 @@
/* Landscape Phone */ /* Landscape Phone */
@media (min-width: 568px) and (max-width: 991px) and (orientation: landscape) { @media (min-width: 568px) and (max-width: 991px) and (orientation: landscape) {
.appContainer { .appWrapper {
} }
.mainContent, .mainContent,
@@ -70,13 +77,12 @@
} }
.tabWrapper { .tabWrapper {
max-height: 100vh; max-height: 100%;
overflow-y: scroll; overflow-y: scroll;
scroll-snap-type: y mandatory; scroll-snap-type: y mandatory;
} }
.tabWrapper .tab { .tabWrapper .tab {
height: 100vh;
scroll-snap-align: start; scroll-snap-align: start;
} }
@@ -95,7 +101,7 @@
/* Portrait Phone */ /* Portrait Phone */
@media (max-width: 567px) { @media (max-width: 567px) {
.appContainer { .appWrapper {
} }
.mainContent, .mainContent,
+6
View File
@@ -9,3 +9,9 @@ body {
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
margin: 0; margin: 0;
} }
html,
body,
#root {
height: 100%;
}