Skip to content

fix: prevent grid cards from stretching when one is expanded#38

Closed
Clav3rbot wants to merge 1 commit intoadn8naiagent:devfrom
Clav3rbot:fix/grid-card-stretch
Closed

fix: prevent grid cards from stretching when one is expanded#38
Clav3rbot wants to merge 1 commit intoadn8naiagent:devfrom
Clav3rbot:fix/grid-card-stretch

Conversation

@Clav3rbot
Copy link
Copy Markdown
Contributor

What

Fixes grid card layout in SessionPicker.tsx so that expanding one card does not stretch adjacent cards.

Why

When a session card was expanded (e.g. to show session details), adjacent cards in the same grid row would stretch vertically to match its height, causing an unintended layout shift.

How

  • Changed grid item alignment from items-stretch (default) to items-start so each card only takes the height it needs.

Add items-start to the events grid so that cards in the same row keep
their intrinsic height instead of stretching to match an expanded card.
@adn8naiagent
Copy link
Copy Markdown
Owner

Decided to restyle the home page to an expandable list so we no longer have this issue

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