Skip to content

Commit

Permalink
Merge branch 'mkirk/android-layout'
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkirk committed Jan 30, 2024
2 parents b489a9b + a6b175f commit cb86012
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions services/frontend/www-app/src/layouts/MainLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,27 @@
</template>

<style lang="scss">
.platform-ios {
body.mobile {
.app-container {
@media screen and (max-width: 799px) {
// -webkit-fill-available is a well supported way to fill the viewport
// while avoiding the address bar on iOS.
//
// The rule exists on chrome on android but, it doesn't behave the same.
//
// 100dvh is a cross platform alternative to -webkit-fill-available that
// seems to behave equally on Safari on iOS and Chrome on Android,
// but it's still pretty new, and not yet supported at all on Firefox.
height: calc(100vh - 55px);
height: -webkit-fill-available;
height: -moz-fill-available;
height: 100dvh;
}
}
}
.app-container {
width: 100%;
// iPhoneX content is beyond screen boundary
//height: calc(100vh - 50px);
height: 100vh;
display: flex;
flex-direction: column;
Expand Down

0 comments on commit cb86012

Please sign in to comment.