Skip to content

fix(homepage): keep IDE plugin cards side-by-side and spaced#583

Merged
travis-hoover-glean merged 1 commit into
mainfrom
fix/ide-plugin-card-spacing
Jun 19, 2026
Merged

fix(homepage): keep IDE plugin cards side-by-side and spaced#583
travis-hoover-glean merged 1 commit into
mainfrom
fix/ide-plugin-card-spacing

Conversation

@travis-hoover-glean

@travis-hoover-glean travis-hoover-glean commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Problem

The "Official IDE Plugins" cards on the homepage were stacking vertically and touching, instead of sitting side-by-side.

Root cause: The cards used Docusaurus's infima row / col col--6 grid, which collapses to full-width (stacked) below the 996px breakpoint. At typical laptop widths just under 996px the cards stacked, and at intermediate widths they touched because the separating margin only kicked in at 768px.

BEFORE:

2026-06-19 at 09 33 34@2x

AFTER:
2026-06-19 at 09 32 55@2x
2026-06-19 at 09 33 29@2x
2026-06-19 at 09 33 51@2x

Fix

In src/components/Homepage/IDEPluginSection.{tsx,module.css}:

  • Replaced the infima row / col col--6 markup with a dedicated CSS grid (.grid) using grid-template-columns: repeat(2, 1fr) and gap: 1.5rem.
  • The grid collapses to a single column at max-width: 768px (true mobile), where the same gap handles vertical spacing.

Verification

Verified via Chrome DevTools across widths:

  • 940px → two columns side-by-side with a clean gap
  • 600px → single column, properly spaced

The plugin cards used the infima row/col--6 grid, which collapses to
full-width below the 996px breakpoint, stacking the cards (and leaving
them touching at intermediate widths). Replace the grid markup with a
dedicated CSS grid that holds two columns until 768px and uses a gap for
consistent spacing in both layouts.
@vercel

vercel Bot commented Jun 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
glean-developer-site Ready Ready Preview, Comment Jun 19, 2026 4:41pm

Request Review

@travis-hoover-glean travis-hoover-glean requested a review from a team June 19, 2026 16:42
@travis-hoover-glean travis-hoover-glean marked this pull request as ready for review June 19, 2026 16:42
@travis-hoover-glean travis-hoover-glean requested a review from a team as a code owner June 19, 2026 16:42
@travis-hoover-glean travis-hoover-glean merged commit e78074e into main Jun 19, 2026
4 checks passed
@travis-hoover-glean travis-hoover-glean deleted the fix/ide-plugin-card-spacing branch June 19, 2026 17:50
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