게임 화면 공통 틀: 1600px 상한 없애고 창 폭 전체 사용, 판 크기 변수(--play-w/--play-h), 화면 채움 측정 스크립트
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -835,7 +835,6 @@ button.header-user {
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.room-bar-inner {
|
||||
max-width: 1600px;
|
||||
height: 100%;
|
||||
margin: 0 auto;
|
||||
padding: 0 24px;
|
||||
@@ -862,11 +861,10 @@ button.header-user {
|
||||
}
|
||||
}
|
||||
|
||||
/* Game screen: board + right panel, fits the viewport height on PC */
|
||||
/* Game screen: board + right panel, fits the viewport height on PC and uses the whole window width
|
||||
(no max width: the board column takes everything the side panel leaves). */
|
||||
.game-layout {
|
||||
max-width: 1600px;
|
||||
margin: 0 auto;
|
||||
padding: 16px 24px;
|
||||
padding: 16px 20px;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 380px;
|
||||
gap: 20px;
|
||||
@@ -876,6 +874,10 @@ button.header-user {
|
||||
.game-main {
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
/* Play area size for games to fit their table to (px; kept up to date by usePlayArea in lib/play-area.ts).
|
||||
Under 1100px the page scrolls, so the height is the visible window under the room bar. */
|
||||
--play-w: calc(100vw - 24px);
|
||||
--play-h: calc(100dvh - var(--site-h) - 52px - 24px);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
Reference in New Issue
Block a user