Skip to content

Commit 30d38be

Browse files
authored
Merge pull request #594 from KhronosGroup/fix/mobileMenuHeight
Fix UI cutoff on mobile
2 parents 1a4a278 + e32668a commit 30d38be

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/ui/sass.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ body
9494
/* tab selection on the right */
9595
.b-tabs.is-vertical
9696
{
97-
height: 100vh;
97+
height: 100dvh;
9898
}
9999

100100
nav.tabs
@@ -133,12 +133,12 @@ nav.tabs
133133
// handle options placement
134134
.tabs li:first-child
135135
{
136-
margin-top: calc(100vh * 0.11);
136+
margin-top: calc(100dvh * 0.11);
137137
}
138138
.tabs li:nth-child(7)
139139
{
140140
margin-top: auto;
141-
margin-bottom: calc(100vh * 0.02);
141+
margin-bottom: calc(100dvh * 0.02);
142142
}
143143

144144
.tabs li a

src/ui/ui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const appCreated = createApp({
125125
},
126126
beforeMount: function(){
127127
// Definition of mobile: https://bulma.io/documentation/start/responsiveness/
128-
if(window.innerWidth > 768) {
128+
if(document.documentElement.clientWidth > 768) {
129129
this.uiVisible = true;
130130
this.isMobile = false;
131131
} else {

0 commit comments

Comments
 (0)