모든 게임이 남는 화면 전체를 쓰도록: 게임별 폭 상한 제거, 판·카드·말을 --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:
@@ -69,6 +69,20 @@ const CSS = `
|
||||
.cf-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
|
||||
.cf-table td, .cf-table th { border-bottom: 1px solid var(--border); padding: 6px 4px; text-align: left; vertical-align: top; }
|
||||
.cf-memo { width: 100%; min-height: 220px; font: inherit; font-size: max(16px, 1rem); line-height: 1.6; padding: 10px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text); }
|
||||
.cf-main { display: flex; flex-direction: column; gap: 12px; }
|
||||
/* PC: use the whole play column. Reading (briefing / last clue) sits in a left column of readable width, choices on the right. */
|
||||
@media (min-width: 1100px) {
|
||||
.cf { max-width: none; }
|
||||
.cf-main { flex-direction: row; align-items: flex-start; }
|
||||
.cf-main > * { flex: 1 1 0; min-width: 0; }
|
||||
.cf-main > .cf-read { flex-grow: 1.15; }
|
||||
.cf-brief { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-content: start; align-items: start; }
|
||||
.cf-brief > .cf-bar { grid-column: 1 / -1; }
|
||||
.cf-brief > .cf-paper { grid-row: 2 / span 3; }
|
||||
.cf-brief > :not(.cf-bar):not(.cf-paper) { grid-column: 2; }
|
||||
.cf-memo { min-height: max(220px, calc(var(--play-h) - 260px)); }
|
||||
.cf-doc { font-size: clamp(16px, calc(var(--play-h) * .0185), 20px); }
|
||||
}
|
||||
`;
|
||||
|
||||
// ---------------------------------------------------------------- device-only notes (§9)
|
||||
@@ -284,11 +298,16 @@ function LeadsTab({ v, players, act, titles }: { v: CaseFileView; players: Playe
|
||||
const meSeat = v.seats.find((s) => s.id === v.me);
|
||||
const here = v.seats.filter((s) => !s.left && s.idle === 0);
|
||||
return (
|
||||
<div className="stack" style={{ gap: 12 }}>
|
||||
{today && inv.hour === 9 && (
|
||||
<div className="cf-paper"><span className="cf-stamp">📰 {today.day}일째 아침 소식</span><Doc text={today.text} /></div>
|
||||
<div className="cf-main">
|
||||
{((today && inv.hour === 9) || last) && (
|
||||
<div className="stack cf-read" style={{ gap: 12 }}>
|
||||
{today && inv.hour === 9 && (
|
||||
<div className="cf-paper"><span className="cf-stamp">📰 {today.day}일째 아침 소식</span><Doc text={today.text} /></div>
|
||||
)}
|
||||
{last && <ReadCard e={last} v={v} players={players} chooser={chooser} titles={titles} />}
|
||||
</div>
|
||||
)}
|
||||
{last && <ReadCard e={last} v={v} players={players} chooser={chooser} titles={titles} />}
|
||||
<div className="stack" style={{ gap: 12 }}>
|
||||
<section aria-label="지도">
|
||||
<div className="small" style={{ marginBottom: 4 }}>📍 지금 위치: <strong>{inv.placeName}</strong> ({inv.zoneName})</div>
|
||||
<div className="cf-zones">
|
||||
@@ -335,6 +354,7 @@ function LeadsTab({ v, players, act, titles }: { v: CaseFileView; players: Playe
|
||||
{inv.hints.length > 0 && (
|
||||
<div className="cf-paper"><span className="cf-stamp">💡 반장님 조언</span><ol className="cf-doc" style={{ margin: 0, paddingLeft: '1.3em' }}>{inv.hints.map((h, i) => <li key={i}>{h}</li>)}</ol></div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -550,7 +570,7 @@ function Board({ view: v, me, players, act, deadline }: BoardProps<CaseFileView>
|
||||
if (v.phase === 'briefing') {
|
||||
const ready = v.seats.filter((s) => s.ready).length;
|
||||
return (
|
||||
<div className="cf">
|
||||
<div className="cf cf-brief">
|
||||
<style>{CSS}</style>
|
||||
<CaseBar v={v} players={players} deadline={deadline} />
|
||||
<article className="cf-paper" aria-label="의뢰">
|
||||
|
||||
Reference in New Issue
Block a user