Skip to content

Conversation

@sepro
Copy link
Member

@sepro sepro commented Dec 28, 2025

No description provided.

Replaced float-based layout with CSS Grid for better responsive behavior:
- Cards now auto-fit into available screen width
- Responsive card sizing using clamp() for different viewports
- Mobile optimization: stacks overlap on narrow screens with hover to bring forward
- Eliminated excessive margins when stacks have fewer than 4 cards
- Maintains card stacking visualization with offset positioning

This provides better scaling from mobile to desktop while preserving the
visual representation of card quantities through stacked cards.
- Increased card size on mobile from 150-250px to 260px for better readability
- Increased stack height to 280px to reduce overlap and improve clarity
- Added 2rem spacing between card type sections
- Added proper margin to section headers to prevent overlap with cards

Cards are now larger and more readable on narrow screens, with clear
separation between Lands, Creatures, Instants/Sorceries, etc.
Increased mobile stack height from 280px to 380px to properly contain
cards with maximum offset (120px) plus card height (260px).
Added overflow: visible to prevent any clipping of cards.

This fixes the issue where cards were extending beyond the container
border on narrow screens.
- Changed cards to width-based sizing (up to 340px or 90vw) instead of fixed height
- Cards now maintain proper aspect ratio with height: auto
- Added 1rem gap between stacks for better visual separation
- Cards utilize more horizontal screen space on mobile devices
- Increased stack height to 500px to fully contain wider cards
- Added overflow: hidden to stacks (visible on hover) to prevent card spillover
- Increased grid margin-bottom to 3rem for better section separation
- Added z-index and background to headers to ensure they stay above cards
- Added extra margin and padding for proper spacing between sections

Section headers now always appear clearly below the previous section's cards.
…ow hidden

- Increased stack height from 500px to 600px to accommodate full card height
- Changed overflow from hidden to visible to prevent bottom clipping
- Cards now display fully without being cut off

Headers remain protected by z-index and background styling.
@sepro sepro merged commit 948ecd2 into master Dec 28, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants