모든 게임이 남는 화면 전체를 쓰도록: 게임별 폭 상한 제거, 판·카드·말을 --play-w/--play-h에 맞춰 키움
- 카드 게임: 펠트가 남는 높이를 채우고 손패·가운데 더미·자리 크기가 화면에 따라 커짐 - 판 게임: 체스·바둑·오목 등은 높이를 다 쓰고, 장기·쿼리도·젬블로는 넓은 화면에서 조작판을 판 옆으로 - 섯다: 자리를 판 크기에 맞춘 타원 위에 고르게 두고, 많을 때 자리 크기를 줄여 8명에서도 겹치지 않게 - 바퀴벌레 포커 6명·야단법석 달리기 5명 선수 뽑기가 PC에서 넘치지 않게 - 휴대폰·태블릿(1100px 아래) 배치는 그대로 - layout-survey: 컴퓨터 넣기 버튼 기다림, 넘친 높이(px) 표시 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -90,7 +90,7 @@ const cmSound = {
|
||||
};
|
||||
|
||||
const CSS = `
|
||||
.cm { width: 100%; max-width: 1100px; display: flex; flex-direction: column; gap: 8px; align-self: center; }
|
||||
.cm { width: 100%; display: flex; flex-direction: column; gap: 8px; align-self: stretch; }
|
||||
.cm-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: space-between; font-weight: 700; }
|
||||
.cm-pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 10px; background: var(--surface); box-shadow: var(--shadow); font-size: .92rem; font-variant-numeric: tabular-nums; }
|
||||
.cm-hint { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 48px; }
|
||||
@@ -102,8 +102,9 @@ const CSS = `
|
||||
.cm-bar { position: relative; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
|
||||
.cm-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; transition: width .25s linear; }
|
||||
.cm-stage { display: flex; gap: 12px; align-items: flex-start; justify-content: center; }
|
||||
.cm-paper { position: relative; width: min(100%, calc(100vh - 290px)); min-width: 280px; aspect-ratio: 1 / 1; border-radius: 14px; background: #fff; box-shadow: var(--shadow);
|
||||
border: 3px solid var(--border); overflow: hidden; flex: 0 0 auto; }
|
||||
/* Square paper: as tall as the play column allows after the pills, hint and time rows above it (PC). */
|
||||
.cm-paper { position: relative; width: min(100%, var(--play-h, 100vh) - 150px); min-width: 280px; aspect-ratio: 1 / 1; border-radius: 14px; background: #fff; box-shadow: var(--shadow);
|
||||
border: 3px solid var(--border); overflow: hidden; flex: 0 1 auto; }
|
||||
.cm-paper canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: auto; }
|
||||
.cm-paper[data-draw='true'] canvas { touch-action: none; cursor: crosshair; }
|
||||
.cm-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center;
|
||||
@@ -167,6 +168,12 @@ const CSS = `
|
||||
.cm-away { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; background: var(--warning-soft); color: var(--text); border-radius: 12px; padding: 8px 12px; }
|
||||
@keyframes cm-pop { 0% { transform: translate(-50%, -50%) scale(.5); opacity: 0; } 70% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1); } }
|
||||
@keyframes cm-shake { 0%,100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
|
||||
/* PC: the guess chat in the side panel takes the height left under the scores. */
|
||||
@media (min-width: 1100px) {
|
||||
.cm-side { flex: 1 1 auto; min-height: 0; }
|
||||
.cm-side .cm-chat { flex: 1 1 auto; min-height: 260px; }
|
||||
.cm-side .cm-chat-list { flex: 1 1 auto; max-height: none; }
|
||||
}
|
||||
@media (max-width: 1099px) {
|
||||
.cm-stage { flex-direction: column; align-items: stretch; }
|
||||
.cm-paper { width: 100%; min-width: 0; }
|
||||
|
||||
Reference in New Issue
Block a user