Skip to content

Commit 542472b

Browse files
fix(layout): allow window scroll on mobile viewports for menu accessibility
1 parent 071cc30 commit 542472b

2 files changed

Lines changed: 14 additions & 8 deletions

File tree

desktop-app/resources/styles.css

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,20 @@
7373
padding: 0;
7474
}
7575

76-
html,
77-
body {
78-
height: 100%;
79-
overflow: hidden;
76+
@media (min-width: 768px) {
77+
html,
78+
body {
79+
height: 100%;
80+
overflow: hidden;
81+
}
8082
}
8183

8284
body {
8385
background-color: var(--bg-color);
8486
color: var(--text-color);
8587
/* PERF-021: Removed background-color transition to avoid full-viewport repaint on theme toggle */
8688
transition: color 0.15s ease;
89+
min-height: 100vh;
8790
font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Hiragino Kaku Gothic ProN", Meiryo, "Malgun Gothic", "Apple SD Gothic Neo", "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
8891
}
8992

styles.css

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,20 @@
7373
padding: 0;
7474
}
7575

76-
html,
77-
body {
78-
height: 100%;
79-
overflow: hidden;
76+
@media (min-width: 768px) {
77+
html,
78+
body {
79+
height: 100%;
80+
overflow: hidden;
81+
}
8082
}
8183

8284
body {
8385
background-color: var(--bg-color);
8486
color: var(--text-color);
8587
/* PERF-021: Removed background-color transition to avoid full-viewport repaint on theme toggle */
8688
transition: color 0.15s ease;
89+
min-height: 100vh;
8790
font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Hiragino Kaku Gothic ProN", Meiryo, "Malgun Gothic", "Apple SD Gothic Neo", "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
8891
}
8992

0 commit comments

Comments
 (0)