mirror of
https://github.com/tiennm99/sokoban.git
synced 2026-10-14 04:16:36 +00:00
fix: prevent left-side clipping on large boards
Replace flex centering on scroll container with margin auto on the board element so overflowing boards remain fully scrollable.
This commit is contained in:
1 parent
d46ccb6d50
commit
4d69ef979d
2 files changed
+1
-2
No files matched your search
@@ -96,6 +96,7 @@
|
||||
border-radius: var(--radius);
|
||||
overflow: hidden;
|
||||
background: var(--bg-deep);
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.floor,
|
||||
|
||||
@@ -196,8 +196,6 @@
|
||||
}
|
||||
|
||||
.board-wrap {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
overflow: auto;
|
||||
max-height: calc(100vh - 140px);
|
||||
|
||||
Reference in new issue
Block a user