Skip to content

Center picker menu icons on their label line#626

Merged
SawyerHood merged 1 commit into
mainfrom
bb/thr_u6p2wpjbbx
Jul 12, 2026
Merged

Center picker menu icons on their label line#626
SawyerHood merged 1 commit into
mainfrom
bb/thr_u6p2wpjbbx

Conversation

@SawyerHood

Copy link
Copy Markdown
Collaborator

Summary

Icons in the environment/branch/option picker dropdown menus sat 1–2px below the text centerline, and the checkout-path hint in the multi-machine menu sat 2px below the label baseline.

Menu item labels render at text-xs (16px line-height; 20px on coarse pointers), but the leading icons carried a blanket mt-0.5 copied between components regardless of icon size:

  • EnvironmentPicker (EnvironmentMenuItem): 14px icon on a 16px line needs mt-px, not mt-0.5; on coarse pointers icon and line are both 20px, so no offset. Also removed the stray mt-0.5 on the path hint.
  • OptionPicker: 16px icon on a 16px line needs no offset (kept mt-0.5 only under coarse pointers, where the line grows to 20px but the icon stays 16px).
  • BranchPicker (BranchPickerUnavailableRow): same fix as EnvironmentMenuItem.

Also adds a MachineMenu story for the machine-grouped environment menu, which previously had no story.

Testing

  • pnpm exec turbo run typecheck --filter=@bb/app passes.
  • Verified visually in Ladle (pickers--environment-picker--machine-menu and --overview): icons center on their label line and the path hint shares the label baseline.

🤖 Generated with Claude Code

Menu item labels are text-xs (16px line-height) but the leading icons
carried a 2px top margin copied from a larger layout, sitting them 1-2px
below the text centerline; the checkout path hint in the machine menu
had the same stray margin. Fix the offsets in EnvironmentMenuItem,
OptionPicker items, and BranchPickerUnavailableRow (including the
coarse-pointer sizes), and add a machine-grouped EnvironmentPicker story.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@SawyerHood SawyerHood merged commit 98a05c2 into main Jul 12, 2026
10 checks passed
@SawyerHood SawyerHood deleted the bb/thr_u6p2wpjbbx branch July 12, 2026 15:32
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