feat(poker): drop the center suit glyph from mini cards
Mini-sized cards show the rank and corner suit only, keeping the guide's example rows quiet at small sizes. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
parent
8634c17ff2
commit
076a631fe8
1 changed files with 7 additions and 3 deletions
|
|
@ -105,9 +105,13 @@ export function CardView({
|
||||||
<span className="font-semibold">{RANK_LABELS[card.rank]}</span>
|
<span className="font-semibold">{RANK_LABELS[card.rank]}</span>
|
||||||
<span>{SUIT_SYMBOLS[card.suit]}</span>
|
<span>{SUIT_SYMBOLS[card.suit]}</span>
|
||||||
</span>
|
</span>
|
||||||
<span className={cn("poker-card-center", RED_SUITS.has(card.suit) && redSuitClass)}>
|
{size !== "mini" && (
|
||||||
{SUIT_SYMBOLS[card.suit]}
|
<span
|
||||||
</span>
|
className={cn("poker-card-center", RED_SUITS.has(card.suit) && redSuitClass)}
|
||||||
|
>
|
||||||
|
{SUIT_SYMBOLS[card.suit]}
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</span>
|
</span>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue