Repository navigation
Fix environment picker icon alignment and spacing without resizing - #3577
Merged
ymichael merged 1 commit intoSep 12, 2026
Merged
Conversation
ymichael
deleted the
bb/fix-environment-picker-icon-alignment-thr_exn6ceymwf
branch
September 12, 2026 05:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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 --dryrunandpnpm start:worktree— built and started successfully; server and daemon health checks passed.