The selected-card preview zooms to the full reading modal on a click
Selecting a hand card must not throw a modal over the board — the aim comes next — so the corner preview becomes the doorway: click it and the card opens at tile-peek size, close it and the selection stands. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015RCWSTnb1KYTPyL4GmhGnF
This commit is contained in:
co-authored by
Claude Fable 5
parent
51aae53ae2
commit
beaae4a0a4
@@ -2630,11 +2630,12 @@
|
||||
</div>
|
||||
|
||||
{#if selectedCard && !inspectorHidden}
|
||||
<div class="inspector" role="img" aria-label="selected card, enlarged">
|
||||
<div class="inspector">
|
||||
<button class="inspector-close" onclick={() => (inspectorHidden = true)} aria-label="hide enlarged card">×</button>
|
||||
<div class="inspector-card">
|
||||
<button class="inspector-card" title="read it full size"
|
||||
onclick={() => (peekCard = selectedCard)}>
|
||||
<Card card={selectedCard} onfaq={(id) => (faqCardId = id)} />
|
||||
</div>
|
||||
</button>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
@@ -3735,6 +3736,10 @@
|
||||
transform: scale(1.55);
|
||||
transform-origin: bottom right;
|
||||
filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.65));
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 0;
|
||||
cursor: zoom-in;
|
||||
}
|
||||
.inspector-card :global(.card) {
|
||||
cursor: default;
|
||||
|
||||
Reference in New Issue
Block a user