Skip to content

Fix plugin browse card columns in narrow content areas - #5105

Merged
ymichael merged 1 commit into
mainfrom
bb/keep-plugin-example-cards-readable-when-narrow-thr_nmzhjivgz9
Oct 7, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/keep-plugin-example-cards-readable-when-narrow-thr_nmzhjivgz9

Conversation

@ymichael

@ymichael ymichael commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The example and capability card grids used viewport breakpoints. A narrow
content area on a desktop viewport still received three columns, truncating
titles and wrapping descriptions into one or two words per line.

What changed

Size both grids from their available width with the existing plugin catalog
card grid pattern. Cards have an 18rem minimum capped at the available width,
so narrow areas use one column and the full desktop story keeps three.

How you verified

  • Located the cards in Plugins > Browse > New plugin and inspected the primary
    server read-only at 390px. That layout already used one column.
  • Reproduced three 112px columns in the 352px Ladle Narrow story at a 1440px
    viewport before changing code.
  • Captured and reviewed before/after Ladle screenshots at 390px and 1440px,
    plus the full desktop Grid story.
  • Verified the fixed Narrow story at 320px, 390px, 640px, and 1440px: one
    column, no truncated titles, and no horizontal overflow. The full desktop
    Grid story retains three columns.
  • pnpm exec turbo run typecheck lint --filter=@bb/app passed. Lint reported
    250 existing warnings and zero errors.
  • git diff --check passed.

AGENT GENERATED

@ymichael
ymichael force-pushed the bb/keep-plugin-example-cards-readable-when-narrow-thr_nmzhjivgz9 branch from 9386c17 to 06c67d5 Compare October 7, 2026 17:55
## What was wrong

The example and capability card grids used viewport breakpoints. A narrow
content area on a desktop viewport still received three columns, truncating
titles and wrapping descriptions into one or two words per line.

## What changed

Size both grids from their available width with the existing plugin catalog
card grid pattern. Cards have an 18rem minimum capped at the available width,
so narrow areas use one column and the full desktop story keeps three.

## How you verified

- Located the cards in Plugins > Browse > New plugin and inspected the primary
  server read-only at 390px. That layout already used one column.
- Reproduced three 112px columns in the 352px Ladle Narrow story at a 1440px
  viewport before changing code.
- Captured and reviewed before/after Ladle screenshots at 390px and 1440px,
  plus the full desktop Grid story.
- Verified the fixed Narrow story at 320px, 390px, 640px, and 1440px: one
  column, no truncated titles, and no horizontal overflow. The full desktop
  Grid story retains three columns.
- pnpm exec turbo run typecheck lint --filter=@bb/app passed. Lint reported
  250 existing warnings and zero errors.
- git diff --check passed.

> AGENT GENERATED
@ymichael
ymichael force-pushed the bb/keep-plugin-example-cards-readable-when-narrow-thr_nmzhjivgz9 branch from 06c67d5 to 18f6ab6 Compare October 7, 2026 18:07
@ymichael
ymichael merged commit 70b7ff8 into main Oct 7, 2026
28 checks passed
@ymichael
ymichael deleted the bb/keep-plugin-example-cards-readable-when-narrow-thr_nmzhjivgz9 branch October 7, 2026 18:10
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.

1 participant