화면 정리: 한눈에 들어오게 (홈 게임 타일·종류 탭, 방 안 상단 막대 한 줄, 대기실·결과·설정 간소화)
"한 화면에 정보가 너무 많아 한눈에 들어오지 않는다" 피드백. NN/g 점진적 공개, 토스 "한 화면 한 가지", BGA 화면 지침, Hick의 법칙을 참고해 docs/07 §1에 원칙 8번으로 정리하고 화면에 적용했다. - 홈·게임 목록: 게임 카드를 아이콘·이름·"2명 · 5~15분" 타일로 줄이고(설명·난이도는 게임 소개에만), 휴대폰 3열. [전체][판·주사위][카드·패][여럿이 파티] 탭. 휴대폰 홈 세로 길이 약 1/4. 휴대폰에서 [방 만들기]는 한 줄, [코드로 참여]·[컴퓨터와 연습]은 나란히. - 방 안: 사이트 상단 메뉴를 숨기고 방 막대 한 줄만(--site-h 변수, 방 안에서는 0). - 대기실: 초대 카드는 빈자리가 있을 때만, 버튼은 [링크 복사][공유하기/초대글 복사] 두 개 (QR은 빈자리 칸 "+ 빈자리 · 📷 QR로 초대"). PC 대기실의 규칙 전문 카드와 "바꾸면 바로 적용돼요" 제거. 게스트 경고는 시작 버튼 아래 한 줄로. - 채팅 빠른 반응은 한 줄(넘치면 옆으로). - 결과 창: 진한 버튼은 [한 판 더] 하나, [판 보기][▶ 다시 보기]는 한 줄. - 설정(/me): 항목 이름과 선택지를 한 줄에. - E2E: 다시 보기 링크 이름, 컴퓨터 상대의 "게임 중 홈으로"는 앱 안 이동으로. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -370,7 +370,7 @@ label.field {
|
||||
|
||||
.toasts {
|
||||
position: fixed;
|
||||
top: calc(64px + env(safe-area-inset-top));
|
||||
top: calc(var(--site-h) + env(safe-area-inset-top));
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
z-index: 60;
|
||||
@@ -698,10 +698,27 @@ button.header-user {
|
||||
}
|
||||
}
|
||||
|
||||
/* Site header height, used by the sticky room bar and the viewport-fitting game layout.
|
||||
Inside a room the room bar is the only top bar (docs/07 §3.4): one bar, not two. */
|
||||
:root {
|
||||
--site-h: 64px;
|
||||
}
|
||||
@media (max-width: 719px) {
|
||||
:root {
|
||||
--site-h: 56px;
|
||||
}
|
||||
}
|
||||
:root.in-room {
|
||||
--site-h: 0px;
|
||||
}
|
||||
.in-room .site-header {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Room bar under the site header */
|
||||
.room-bar {
|
||||
position: sticky;
|
||||
top: 64px;
|
||||
top: var(--site-h);
|
||||
z-index: 25;
|
||||
height: 52px;
|
||||
background: var(--bg);
|
||||
@@ -717,9 +734,6 @@ button.header-user {
|
||||
gap: 12px;
|
||||
}
|
||||
@media (max-width: 719px) {
|
||||
.room-bar {
|
||||
top: 56px;
|
||||
}
|
||||
.room-bar-inner {
|
||||
padding: 0 8px;
|
||||
}
|
||||
@@ -746,7 +760,7 @@ button.header-user {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 380px;
|
||||
gap: 20px;
|
||||
height: calc(100vh - 64px - 52px);
|
||||
height: calc(100vh - var(--site-h) - 52px);
|
||||
min-height: 560px;
|
||||
}
|
||||
.game-main {
|
||||
@@ -778,7 +792,7 @@ button.header-user {
|
||||
}
|
||||
|
||||
.board-wrap {
|
||||
max-width: min(100%, calc(100vh - 64px - 52px - 120px));
|
||||
max-width: min(100%, calc(100vh - var(--site-h) - 52px - 120px));
|
||||
width: 100%;
|
||||
}
|
||||
@media (max-width: 1099px) {
|
||||
@@ -816,11 +830,18 @@ button.header-user {
|
||||
.chat-line strong {
|
||||
margin-right: 6px;
|
||||
}
|
||||
/* One line of quick reactions; the rest scrolls sideways instead of stacking rows. */
|
||||
.emote-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
flex-wrap: nowrap;
|
||||
overflow-x: auto;
|
||||
scrollbar-width: none;
|
||||
gap: 4px;
|
||||
}
|
||||
.emote-row button {
|
||||
flex: none;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.emote-row button {
|
||||
border: 1px solid var(--border);
|
||||
background: var(--bg);
|
||||
@@ -859,6 +880,80 @@ button.header-user {
|
||||
}
|
||||
.game-card {
|
||||
transition: transform 0.12s ease, box-shadow 0.12s ease;
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
gap: 6px;
|
||||
padding: 18px 10px 16px;
|
||||
}
|
||||
/* Game picker tiles: icon, name, one meta line (docs/07 §3.3). */
|
||||
.game-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
.game-card-icon {
|
||||
font-size: 2.4rem;
|
||||
line-height: 1.1;
|
||||
}
|
||||
.game-card-name {
|
||||
font-size: 1.05rem;
|
||||
word-break: keep-all;
|
||||
}
|
||||
.game-card-meta {
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-sub);
|
||||
}
|
||||
.game-tabs {
|
||||
flex-wrap: nowrap;
|
||||
overflow-x: auto;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
.game-tabs button {
|
||||
flex: none;
|
||||
}
|
||||
@media (max-width: 719px) {
|
||||
.game-grid {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 8px;
|
||||
}
|
||||
.game-card {
|
||||
padding: 14px 4px 12px;
|
||||
}
|
||||
.game-card-icon {
|
||||
font-size: 2rem;
|
||||
}
|
||||
.game-card-name {
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
.game-card-meta {
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
/* 방 만들기 full width, the two smaller actions side by side. */
|
||||
.home-actions {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 10px;
|
||||
}
|
||||
.home-action {
|
||||
min-height: 0;
|
||||
padding: 14px 16px;
|
||||
}
|
||||
.home-action.primary {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
.home-action-icon {
|
||||
font-size: 1.6rem;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.home-action-title {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
.home-action-sub {
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
}
|
||||
.phone-only {
|
||||
display: none;
|
||||
@@ -1257,3 +1352,20 @@ button.header-user {
|
||||
.data-table.compact td {
|
||||
padding: 8px 8px;
|
||||
}
|
||||
|
||||
/* Settings: label and choices on one line (wraps under on narrow screens). */
|
||||
.setting-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px 12px;
|
||||
padding: 6px 0;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
.setting-row:first-of-type {
|
||||
border-top: 0;
|
||||
}
|
||||
.setting-row .segmented {
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user