Skip to content

Stop card and row padding from stacking in the Updates panel - #2340

Merged
SawyerHood merged 1 commit into
mainfrom
bb/check-excessive-padding-thr_bdi8bf75n6
Aug 24, 2026
Merged

Stop card and row padding from stacking in the Updates panel#2340
SawyerHood merged 1 commit into
mainfrom
bb/check-excessive-padding-thr_bdi8bf75n6

Conversation

@SawyerHood

Copy link
Copy Markdown
Collaborator

What was wrong

The machine cards in Settings → Updates had too much space above the first row and below the last row. SettingsSection pads the card body with py-3.5 (14px). The provider rows are ResourceRows with a plain className="py-2" and no first:pt-0 last:pb-0 reset, so the row's 8px stacked on the card's 14px: 22px at each end. The bb app row is an UpdatesRow, which has the reset, so it sat at 14px. A card that mixed the two came out lopsided (14px top, 22px bottom), and provider-only cards were over-padded at both ends.

What changed

apps/app/src/components/settings/UpdatesSettingsSection.tsx only. One shared ROW_SPACING = "py-2 first:pt-0 last:pb-0" constant sits beside ROW_GRID. UpdatesRow and the three ResourceRow callers (BbDaemonUpdateRow, ProviderCliCheckRow, MachineUpdatesRows) use it. UpdatesRow moves from py-2.5 to py-2, so every row in a card has the same 45px pitch. No wire, CLI, or doc changes.

How you verified

  • pnpm exec turbo run typecheck --filter=@bb/app passes.

  • UpdatesSettingsSection.test.tsx passes (27 tests).

  • Measured in Ladle (settings--updates--multi-machine), card border to row icon, before → after:

    Card Before (top / bottom) After (top / bottom) Card height
    bb row + providers 15 / 28 px 15 / 20 px 199 → 189 px
    providers only 28 / 28 px 20 / 20 px 164 → 148 px
    one row 23 / 23 px 15 / 15 px 70 → 54 px

    The 20px "after" value is to the 24px leading icon centered in a 28px row; the edge to the row box is 15px on every card.

AGENT GENERATED

The provider rows in a machine card are ResourceRows with a plain py-2 and
no first:/last: reset, so their 8px stacked on the SettingsSection card's
own py-3.5: 22px above the first row and below the last row, while the bb
app row (an UpdatesRow with first:pt-0 last:pb-0) sat at 14px. A card that
mixed both came out lopsided, and provider-only cards were padded at both
ends.

Share one ROW_SPACING constant between UpdatesRow and the three ResourceRow
callers so every row in a card has the same pitch and the same edge reset.

Co-Authored-By: Claude <noreply@anthropic.com>
@SawyerHood
SawyerHood merged commit e7a1084 into main Aug 24, 2026
14 of 15 checks passed
@SawyerHood
SawyerHood deleted the bb/check-excessive-padding-thr_bdi8bf75n6 branch August 24, 2026 16:52
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