모든 게임이 남는 화면 전체를 쓰도록: 게임별 폭 상한 제거, 판·카드·말을 --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:
EJClaw
2026-10-17 16:17:15 +09:00
parent adc3b5337a
commit ca8baf5cc8
40 changed files with 1025 additions and 403 deletions

View File

@@ -66,6 +66,8 @@ type MarkMode = 'dead' | 'seki';
const BADUK_CSS = `
.bd-own { transform-box: fill-box; transform-origin: center; animation: bd-own .32s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: var(--d, 0ms); }
@keyframes bd-own { from { opacity: 0; transform: scale(.2); } }
/* PC: the board takes the whole play-area height minus the rows that can show under it (--bd-rows). */
@media (min-width: 1100px) { .board-wrap.bd-fit { max-width: min(100%, calc(var(--play-h) - var(--bd-rows, 0px))); } }
`;
/**
@@ -262,7 +264,11 @@ function BadukBoard({ view: v, act, pending, tapConfirm }: BoardProps<BadukView>
const lastColor: Color | null = v.lastMove ? (at(v.lastMove) === 1 ? 'black' : 'white') : null;
const pad = 0.95;
return (
<div className="board-wrap stack" style={{ gap: 10 }}>
<div
className="board-wrap stack bd-fit"
// Room under the board: the illegal-move note, the dead-stone marking card while scoring, touch tap-confirm buttons.
style={{ gap: 10, '--bd-rows': `calc(1.5rem + 30px${marking ? ' + 2.7rem + 90px' : ''}${tapConfirm ? ' + var(--btn-h) + 10px' : ''})` } as React.CSSProperties}
>
<style>{BOARD_MOTION_CSS + BADUK_CSS}</style>
<svg
ref={svgRef}