Commit ·
5592d96
1
Parent(s): 36e18c3
Prevent horizontal page scroll on mobile
Browse filesClamp html/body to viewport width with overflow-x hidden; wide content like the
data table keeps its own internal horizontal scroll.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- frontend/src/index.css +13 -0
frontend/src/index.css
CHANGED
|
@@ -3015,3 +3015,16 @@ html {
|
|
| 3015 |
.atomic-scroll-area::-webkit-scrollbar-thumb:hover {
|
| 3016 |
background-color: #64748b;
|
| 3017 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3015 |
.atomic-scroll-area::-webkit-scrollbar-thumb:hover {
|
| 3016 |
background-color: #64748b;
|
| 3017 |
}
|
| 3018 |
+
|
| 3019 |
+
/* Prevent horizontal page scroll (esp. on mobile): clamp to viewport width.
|
| 3020 |
+
Wide content (e.g. the data table) scrolls inside its own overflow:auto wrapper,
|
| 3021 |
+
so this only stops the whole window from sliding left/right. */
|
| 3022 |
+
html,
|
| 3023 |
+
body {
|
| 3024 |
+
max-width: 100%;
|
| 3025 |
+
overflow-x: hidden;
|
| 3026 |
+
}
|
| 3027 |
+
|
| 3028 |
+
#root {
|
| 3029 |
+
overflow-x: clip;
|
| 3030 |
+
}
|