Skip to content

Commit 0abac74

Browse files
committed
Fix scroll issue on mobile devices - add proper overflow and height constraints
1 parent 1b3ad0d commit 0abac74

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

www/css/tabs.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
padding: 70px 16px 24px 16px;
44
max-width: 480px;
55
min-height: 100vh;
6+
height: 100vh;
67
margin: 0 auto;
78
overflow-y: auto;
89
overflow-x: hidden;
910
-webkit-overflow-scrolling: touch;
1011
background: var(--light-bg);
12+
position: relative;
1113
}
1214

1315
.tab.active {

www/css/variables.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,13 @@ body.dark-mode .modal-box {
184184
box-sizing: border-box;
185185
}
186186

187+
html {
188+
height: 100%;
189+
overflow: hidden;
190+
position: fixed;
191+
width: 100%;
192+
}
193+
187194
body {
188195
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
189196
background: var(--light-bg);
@@ -192,6 +199,11 @@ body {
192199
padding: 0;
193200
-webkit-font-smoothing: antialiased;
194201
-moz-osx-font-smoothing: grayscale;
202+
height: 100%;
203+
width: 100%;
204+
overflow: hidden;
205+
position: fixed;
206+
-webkit-overflow-scrolling: touch;
195207
}
196208

197209
/* Modern Card Utility Class */

0 commit comments

Comments
 (0)