feat: Implement 3D flip card preview with foil effects in Draft View and add hover preview control to StackView.
Some checks failed
Build and Deploy / build (push) Failing after 52s

This commit is contained in:
2025-12-17 18:35:57 +01:00
parent 2869c35885
commit 3936260861
7 changed files with 167 additions and 55 deletions

View File

@@ -0,0 +1,16 @@
# Restore Hover Magnified Card for Stack View
## Task
Restore the hover magnified card functionality for the stacked view in the pack generation UI, while ensuring it remains disabled for the deck building UI.
## Changes
- Modified `src/client/src/components/StackView.tsx`:
- Imported `CardHoverWrapper`.
- Added `disableHoverPreview` prop (default `false`).
- Wrapped card elements with `CardHoverWrapper`, passing `preventPreview` based on the new prop and card width.
- Modified `src/client/src/modules/draft/DeckBuilderView.tsx`:
- Passed `disableHoverPreview={true}` to `StackView` to maintain existing behavior for the deck builder (which uses a dedicated sidebar preview).
## Outcome
- Pack Generation UI (Cube Manager) now shows floating previews for cards in Stack View.
- Deck Builder UI remains unchanged (no double previews).