Fix mobile scroll on rules screen
overflow:hidden on body.mobile-portrait was blocking scroll on all screens. Scope it to only when the game screen is active using :has(). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
21985b7e9b
commit
bd41afbca8
@ -5002,14 +5002,21 @@ body.screen-shake {
|
|||||||
}
|
}
|
||||||
|
|
||||||
body.mobile-portrait {
|
body.mobile-portrait {
|
||||||
height: var(--app-height, 100vh);
|
|
||||||
overflow: hidden;
|
|
||||||
overscroll-behavior: contain;
|
overscroll-behavior: contain;
|
||||||
touch-action: manipulation;
|
touch-action: manipulation;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.mobile-portrait #app {
|
body.mobile-portrait #app {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Lock viewport only when game screen is active (allow scrolling on rules, lobby, etc.) */
|
||||||
|
body.mobile-portrait:has(#game-screen.active) {
|
||||||
|
height: var(--app-height, 100vh);
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.mobile-portrait:has(#game-screen.active) #app {
|
||||||
height: var(--app-height, 100vh);
|
height: var(--app-height, 100vh);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user