Skip to content

Commit

Permalink
Merge pull request #594 from KhronosGroup/fix/mobileMenuHeight
Browse files Browse the repository at this point in the history
Fix UI cutoff on mobile
  • Loading branch information
UX3D-haertl authored Jan 28, 2025
2 parents 1a4a278 + e32668a commit 30d38be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/ui/sass.scss
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ body
/* tab selection on the right */
.b-tabs.is-vertical
{
height: 100vh;
height: 100dvh;
}

nav.tabs
Expand Down Expand Up @@ -133,12 +133,12 @@ nav.tabs
// handle options placement
.tabs li:first-child
{
margin-top: calc(100vh * 0.11);
margin-top: calc(100dvh * 0.11);
}
.tabs li:nth-child(7)
{
margin-top: auto;
margin-bottom: calc(100vh * 0.02);
margin-bottom: calc(100dvh * 0.02);
}

.tabs li a
Expand Down
2 changes: 1 addition & 1 deletion src/ui/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const appCreated = createApp({
},
beforeMount: function(){
// Definition of mobile: https://bulma.io/documentation/start/responsiveness/
if(window.innerWidth > 768) {
if(document.documentElement.clientWidth > 768) {
this.uiVisible = true;
this.isMobile = false;
} else {
Expand Down

0 comments on commit 30d38be

Please sign in to comment.