Skip to content

fix(ui): inset picker lists so hover never touches the dividers - #454

Merged
nixuuu merged 1 commit into
devfrom
fix/picker-list-insets
Nov 9, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/picker-list-insets

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 9, 2026

Copy link
Copy Markdown
Member

Picker options at the start and end of a list could put their hover background directly against the search/footer dividers. Lists now keep a 4 px vertical inset inside the scrolling content, with matching scroll padding for keyboard navigation.

The inline combobox scrolls a wrapper around its padded list. This lets sticky group headings remain flush with the search divider after the inset scrolls away. Menu padding also lives inside its content, so a phone sheet's safe-area padding cannot remove the last row's inset. Mobile PickerSheet gets the same top inset through a TS-only style change.

Scope and audit

  • Project, worker, workspace and branch pickers (including the existing-thread branch picker from feat(threads): track and switch branches from thread details #422) inherit the shared Combobox fix. The model list uses it too; its provider rail keeps its existing inset and adds scroll padding.
  • Settings selects and slash/mention lists reuse the list inset. Both desktop autocomplete popovers and phone inline suggestions have scroll padding on their actual scroll container.
  • Permission/thread action menus and submenus retain their inset during keyboard navigation. Effort uses an already padded slider panel and needs no list change.
  • The updates center already has vertical content padding; it now has matching scroll padding. Directory browsing already has an inset. Other settings/credential/proxy choices inherit Select.
  • docs/ui-scale.md records the scrolling-content rule. No UI copy changed; copy audit is not applicable.

Verification

  • Passed: frozen Bun install, monorepo typecheck, root lint, format check, web build, and focused ESLint for apps/mobile/src/ui/Picker.tsx.
  • Real Chromium checks used the actual shared components in a temporary isolated fixture on an unused port: light/dark, 1440 px desktop and 390 px phone widths, 2/40 options, short and long labels, scrolling/non-scrolling lists, with/without a search header and footer. Checked first/last hover and keyboard-active rows, top/bottom scrolling, grouped sticky headings, model rail Home/End, and submenu ArrowRight/ArrowLeft focus return. Edge insets stay about 4 px; scrolled sticky headings meet the viewport with an opaque background and no seam. No UI test suite or screenshots were added.
  • Generated production-profile fingerprints with bunx [email protected] fingerprint:generate --platform <ios|android> --build-profile production --json --non-interactive on current dev and this branch; both platforms are unchanged.
  • The extra Expo ESLint command has 36 existing errors and 3 warnings on dev, outside the changed picker. The changed mobile file passes focused ESLint. Native visual checks were not run.
  • Full local check:tmp was intentionally not run on the shared machine; CI remains the gate.

Fixes: #115
Related: #422

Keep 4 px of vertical space inside picker list content, with matching scroll padding. Separate inline combobox scrolling from the padded list so sticky group headings remain flush. Preserve menu insets in phone sheets and add the equivalent mobile PickerSheet top inset.

Fixes: #115
@nixuuu
nixuuu merged commit b632645 into dev Nov 9, 2026
15 of 17 checks passed
@nixuuu
nixuuu deleted the fix/picker-list-insets branch November 9, 2026 19:53
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