1.0 KiB
1.0 KiB
Cube Manager Archidekt View
Objective
Implement an "Archidekt-style" stacked view for pack generation. This view organizes cards into columns by type (Creature, Instant, Land, etc.) with vertical overlapping to save space while keeping headers visible.
Changes
- Refactor PackCard: Extracted
FloatingPreviewandCardHoverWrapperintosrc/client/src/components/CardPreview.tsxto resolve circular dependencies and clean upPackCard.tsx. - Update StackView:
- Rewrite
StackView.tsxto group cards bytypeLine(categories: Creature, Planeswalker, Instant, Sorcery, Enchantment, Artifact, Land, Battle, Other). - Sort cards within categories by CMC.
- Render columns using Flexbox.
- Implement overlapping "card strip" look using negative
margin-bottomon cards. - Value tuning:
margin-bottom: -125%seems appropriate for a standard card aspect ratio to reveal the title bar.
- Rewrite
Result
The "Stack" view option in Cube Manager now renders packs as organized, sorted columns similar to deck-builder interfaces.