Skip to content

fix: stack Date & Location venue cards on mobile and tablet - #26

Closed
ashton-arinze wants to merge 1 commit into
devfest-berlin:mainfrom
ashton-arinze:fix/mobile-venue-layout
Closed

ashton-arinze wants to merge 1 commit into
devfest-berlin:mainfrom
ashton-arinze:fix/mobile-venue-layout

Conversation

@ashton-arinze

Copy link
Copy Markdown

Problem

On phones the Date & Location section was broken. .venue-showcase-container is a two-column grid (1fr 1.25fr) with no responsive rule, so it stayed two columns at every width. On a 390px screen:

  • The dark campus card was squeezed into a strip about 60px wide, and its title, description, facilities and map button were cut off.
  • The address/transit card was squeezed too: transit text wrapped one or two words per line and the action buttons wrapped awkwardly.

Before (live site, 390px):

Venue section before the fix on a 390px phone

Fix

CSS only, in src/assets/css/custom.css:

  • Below 900px: the two cards stack in one column (max 640px wide). This matches the breakpoint the site already uses for the organizers grid.
  • 600px and below:
    • Card padding is smaller.
    • The location and date pills wrap cleanly, and the building icon sits next to the campus name.
    • The address icon and Copy button stay on the same line as the address.
    • Each transit label (S-Bahn / Bus M41 / Car & Bike) sits above its description, so the text uses the full card width.
    • The Google Maps, BVG and Calendar buttons are full width and centered.
  • Desktop (900px and up): unchanged, still the two-column showcase.

After (local, 390px):

Venue section after the fix on a 390px phone

After (local, 768px tablet):

Venue section after the fix on a 768px tablet

Desktop (1280px), unchanged:

Venue section on desktop, still two columns

Testing

  • Ran npm run dev locally and checked the section at 360, 390, 768 and 1280px.
  • No horizontal overflow at any width tested (scrollWidth equals the viewport width).
  • npm run build succeeds.

The venue showcase grid kept its two-column layout at every width, crushing the campus card into a narrow strip on phones. Stack the cards below 900px and tighten padding, transit cards and action buttons at 600px and below.
@ashton-arinze

Copy link
Copy Markdown
Author

Superseded: reopening from the LogicalOgbonna account.

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.

2 participants