Skip to content

fix: align product link pills between overview cards#754

Open
subhrat123 wants to merge 2 commits into
directus:mainfrom
subhrat123:fix-pills-alignment
Open

fix: align product link pills between overview cards#754
subhrat123 wants to merge 2 commits into
directus:mainfrom
subhrat123:fix-pills-alignment

Conversation

@subhrat123

Copy link
Copy Markdown

Summary

This PR fixes the misalignment of the product link pills between the "APIs and Developer Tools" and "Data Studio" cards in the Engine & Studio overview section.

The issue occurred because the desktop card container used a grid layout, causing the product link section to be positioned at different heights when the card descriptions had different lengths.

Changes

  • Added a local ui.container override (lg:flex!) to both overview cards.
  • Kept the fix scoped only to the affected cards without modifying the global UPageCard configuration.
  • Ensured the product link pills remain aligned while preserving the existing design and responsive behavior.

Before

Misaligned product link pills due to different content heights.

601052300-f553e55f-319f-4d11-a36e-93c7828aaeb4

After

Product link pills are properly aligned across both cards.

Screenshot from 2026-06-25 17-40-09

Testing

  • ✅ Reproduced the issue locally.
  • ✅ Verified the alignment is fixed on desktop.
  • ✅ Verified the layout remains responsive on smaller screen sizes.
  • ✅ Confirmed no visual regressions on the affected page.

Fixes #691

@subhrat123 subhrat123 requested a review from a team as a code owner June 25, 2026 12:39
@vercel

vercel Bot commented Jun 25, 2026

Copy link
Copy Markdown

@subhrat123 is attempting to deploy a commit to the Directus Team on Vercel.

A member of the Team first needs to authorize it.

@ComfortablyCoding ComfortablyCoding left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! It's looking great on larger screens.

On smaller screens, the pills are still misaligned. Ideally, the top row of pills on the left card align with the 2 pills in the right. The below image was on 650px screen size

Screenshot 2026-06-26 at 5 21 14 PM

@subhrat123

Copy link
Copy Markdown
Author

@ComfortablyCoding
Thanks for the feedback! I've updated the layout to improve the alignment of the feature pills on smaller screens (around the 650px breakpoint). Please let me know if you'd like any further adjustments.

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.

Pills between cards are mis-aligned

2 participants