섯다 화면을 한게임 섯다 사진대로 다시 배치: 테이블 아래 금색 판에 족보판·내 얼굴·내 패와 족보·베팅 버튼
- 테이블에는 다른 사람 자리만(패 위, 이름·돈 아래). 내 자리는 테이블 아래 금색 판으로 옮김 - 족보판(jokbo.tsx): 3열 목록, 내 족보 칸 강조, 누르면 그림 2장과 설명. 옆 패널의 족보 도우미는 뺌(전체 표는 규칙 화면) - 내 패 밑에 지금 족보, 3장이면 세 조합의 족보(가장 센 것 금색) - 베팅 버튼 두 줄: 콜7·삥4·따당1·하프0 / 다이8·체크5(쿼터2·풀9는 빈칸) - 3장 섯다 공개패·쓸 패 고르기는 내 패를 직접 누르고, 버튼 자리에 확인 버튼. 카드 공개 묻기, 판 결과와 다음 판으로도 그 자리 - HwatuCard disabled: 고르기 단계가 바뀔 때 카드가 다시 마운트되어 나눠 주기 애니메이션이 반복되던 것을 막음 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -90,6 +90,7 @@ export function HwatuCard({
|
||||
showMonth = true,
|
||||
monthStyle = 'badge',
|
||||
onClick,
|
||||
disabled,
|
||||
className,
|
||||
style,
|
||||
}: {
|
||||
@@ -105,6 +106,8 @@ export function HwatuCard({
|
||||
/** 'badge': small dark circle top-right. 'corner': big white outlined number bottom-left (섯다). */
|
||||
monthStyle?: 'badge' | 'corner';
|
||||
onClick?: () => void;
|
||||
/** Keeps the card a (disabled) button while it can't be clicked, so switching on/off doesn't remount it (no replayed deal animation). */
|
||||
disabled?: boolean;
|
||||
className?: string;
|
||||
style?: CSSProperties;
|
||||
}) {
|
||||
@@ -122,7 +125,7 @@ export function HwatuCard({
|
||||
border: 0,
|
||||
borderRadius: radius,
|
||||
background: 'none',
|
||||
cursor: onClick ? 'pointer' : 'default',
|
||||
cursor: onClick && !disabled ? 'pointer' : 'default',
|
||||
opacity: dimmed ? 0.45 : 1,
|
||||
transform: selected ? `translateY(${-Math.round(w * 0.2)}px)` : undefined,
|
||||
transition: 'transform 0.12s ease',
|
||||
@@ -145,8 +148,9 @@ export function HwatuCard({
|
||||
<Tag
|
||||
style={s}
|
||||
onClick={onClick}
|
||||
disabled={onClick ? disabled : undefined}
|
||||
aria-label={card.name}
|
||||
aria-pressed={onClick ? !!selected : undefined}
|
||||
aria-pressed={onClick && !disabled ? !!selected : undefined}
|
||||
title={card.name}
|
||||
className={className}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user