섯다: 화투 월 숫자를 왼쪽 아래에 크게(흰 글씨 + 검은 테두리) 표시, 겹친 상대 카드에서도 보이게

HwatuCard에 monthStyle='corner' 추가(기본 'badge'는 고스톱 등 그대로). 상대 자리 카드는 다음 카드가
오른쪽 30%를 덮어 오른쪽 위 배지가 가려졌는데, 왼쪽 아래 숫자는 겹쳐도 보인다.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-17 00:33:34 +09:00
parent a81f73ef6d
commit 8e549a72c3
3 changed files with 41 additions and 7 deletions

View File

@@ -185,7 +185,7 @@ function SeatCards({ seat, view: v, width }: { seat: SeotdaSeatView; view: Seotd
<div className="sd-cards">
{seat.cards.map((c, i) =>
isCard(c) ? (
<HwatuCard key={c.key} card={c} width={width} className="anim-flip" style={{ marginLeft: i ? -Math.round(width * 0.3) : 0, ['--anim-delay' as string]: `${i * 90}ms` }} />
<HwatuCard key={c.key} card={c} width={width} monthStyle="corner" className="anim-flip" style={{ marginLeft: i ? -Math.round(width * 0.3) : 0, ['--anim-delay' as string]: `${i * 90}ms` }} />
) : (
<HwatuCard key={`b${tag}-${i}`} card={null} width={width} className="anim-deal" style={{ marginLeft: i ? -Math.round(width * 0.3) : 0, ['--anim-delay' as string]: `${i * 80}ms` }} />
),
@@ -298,6 +298,7 @@ function MySeat({ seat, view: v, players, deadline, winner, setRef, phone }: { s
key={c.key}
card={c}
width={w}
monthStyle="corner"
className="anim-deal"
highlight={!!v.myChosen?.includes(c.id) || (!v.myChosen && v.myOpened === c.id)}
dimmed={(!!v.myChosen && !v.myChosen.includes(c.id)) || seat.folded}
@@ -566,7 +567,7 @@ function OpenBox({ view: v, me, act, pending }: { view: SeotdaView; me: string;
</p>
<div className="row" style={{ justifyContent: 'center', gap: 10 }}>
{cards.map((c) => (
<HwatuCard key={c.key} card={c} size="lg" selected={pick === c.id} onClick={() => setPick(c.id)} />
<HwatuCard key={c.key} card={c} size="lg" monthStyle="corner" selected={pick === c.id} onClick={() => setPick(c.id)} />
))}
</div>
<button type="button" className="btn btn-primary" disabled={pick === null || pending} onClick={() => act({ type: 'open', cardId: pick })}>
@@ -609,7 +610,7 @@ function ChooseBox({ view: v, me, act, pending }: { view: SeotdaView; me: string
</p>
<div className="row" style={{ justifyContent: 'center', gap: 10 }}>
{cards.map((c) => (
<HwatuCard key={c.key} card={c} size="lg" selected={pick.includes(c.id)} onClick={() => toggle(c.id)} />
<HwatuCard key={c.key} card={c} size="lg" monthStyle="corner" selected={pick.includes(c.id)} onClick={() => toggle(c.id)} />
))}
</div>
{v.options.hints && v.myCombos && (

View File

@@ -20,8 +20,8 @@ function Pair({ a, b, label, size = 'sm' }: { a: [number, boolean]; b: [number,
return (
<div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', gap: 4 }}>
<div style={{ display: 'flex' }}>
<HwatuCard card={hw(...a)} size={size} />
<HwatuCard card={hw(...b)} size={size} style={{ marginLeft: size === 'md' ? 4 : -10 }} />
<HwatuCard card={hw(...a)} size={size} monthStyle="corner" />
<HwatuCard card={hw(...b)} size={size} monthStyle="corner" style={{ marginLeft: size === 'md' ? 4 : -10 }} />
</div>
<strong style={{ fontSize: size === 'md' ? '1.1rem' : '0.85rem', whiteSpace: 'nowrap' }}>{label}</strong>
</div>