Skip to content

Fix environment picker icon alignment and spacing without resizing - #3577

Merged
ymichael merged 1 commit into
mainfrom
bb/fix-environment-picker-icon-alignment-thr_exn6ceymwf
Sep 12, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/fix-environment-picker-icon-alignment-thr_exn6ceymwf

Conversation

@ymichael

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The environment picker placed a 16px SVG inside a 14px provider-icon wrapper. The graphic overflowed the space reserved for it, sitting low and crowding the label. The project selector centered its icon directly and did not have this mismatch.

What changed

Center provider-icon contents and let the wrapper grow to its contents' intrinsic minimum dimensions. This preserves the existing icon sizes while reserving their full footprint. Add an Environment Picker / Icon Alignment gallery story covering persistent-host checkout, worktree, and the Modal logo alongside the project selector, and update the worktree fixture to use its production FolderGit icon.

How you verified

  • Browser measurements in the component gallery: checkout/worktree remain 16px, Modal remains 14px; all have zero vertical offset and the same 4px icon-to-label gap as the project selector. Before/after screenshots were reviewed.
  • pnpm exec turbo run test --filter=@bb/app -- --run src/components/plugin/ProviderIcon.test.tsx src/components/plugin/EnvironmentProviderIcon.test.tsx src/components/pickers/EnvironmentPicker.test.tsx — 39 tests passed.
  • pnpm exec turbo run typecheck --filter=@bb/app — passed.
  • pnpm start:worktree --dryrun and pnpm start:worktree — built and started successfully; server and daemon health checks passed.

AGENT GENERATED

@ymichael
ymichael merged commit 55f7c32 into main Sep 12, 2026
16 checks passed
@ymichael
ymichael deleted the bb/fix-environment-picker-icon-alignment-thr_exn6ceymwf branch September 12, 2026 05:15
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