fix(events): let the event card shrink below its truncated rows (min-w-0) #152
No reviewers
Labels
No labels
app:activities
app:chat
app:chatelet
app:events
app:forum
app:libra
app:market
app:restaurant
app:tasks
app:wallet
app:webapp
bug
enhancement
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
aiolabs/webapp!152
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/events-card-min-w-0"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
On phone widths an event card with a long address spills off the right edge of the screen (seen on the Oyez! build with "456 Rue Grand Rue de Bellissen, 09000 Bénac, France"). The address is clipped by the viewport rather than ellipsised.
Cause
EventListrenders cards in a one-column CSS grid on mobile. A grid item defaults tomin-width: auto, which resolves to its min-content width. The card'struncaterows (location, organizer) arewhite-space: nowrap, so their full text width counts toward that min-content, and the grid track grows past the viewport whenever an address doesn't fit on one line.The demo doesn't show it only because its events have short addresses. Same code, different data.
Fix
min-w-0on theCardroot so the grid item can shrink andtruncateactually truncates.overflow-hiddenwould also work but would clip the pending/rejected badge that intentionally hangs past the card's bottom edge. The compact hosting view is a column flexbox and was never affected.One-line class change plus a comment explaining why the class is there.
🤖 Generated with Claude Code
https://claude.ai/code/session_01KVxfxB2sDFrdwnXrjhEp1b