Skip to content

fix(command-center): use popper positioning for layout dropdown#1975

Draft
posthog[bot] wants to merge 1 commit intomainfrom
posthog-code/fix-command-center-layout-dropdown
Draft

fix(command-center): use popper positioning for layout dropdown#1975
posthog[bot] wants to merge 1 commit intomainfrom
posthog-code/fix-command-center-layout-dropdown

Conversation

@posthog
Copy link
Copy Markdown
Contributor

@posthog posthog Bot commented May 1, 2026

Summary

The grid-layout Select in the command center toolbar used Radix's default item-aligned positioning. When a non-first layout was selected (e.g. 2x2), the dropdown opened with earlier options rendered above the trigger.

The toolbar sits directly below the title bar, which has -webkit-app-region: drag. The OS drag handler intercepts pointer events for anything painted over that region — even portal'd content with high z-index. So whenever the active layout wasn't 1x1, the first option (1x1) overlapped the drag zone and couldn't be clicked, with hover/focus visibly off.

Switching Select.Content to position="popper" makes the menu open below the trigger like a popover, away from the drag region.

Test plan

  • Open Command Center, set layout to 2x2, then open the dropdown and click 1x1 — should select it
  • Repeat from 3x2 and 3x3 — every option should be hoverable and clickable
  • Confirm dropdown still opens below the trigger and doesn't overflow oddly
  • Confirm window dragging still works in the title bar above the toolbar

Created with PostHog Code

Radix Select's default item-aligned positioning placed options above the
trigger when a non-first layout was selected. The toolbar sits flush below
the title bar's `-webkit-app-region: drag` zone, so any dropdown items that
extended into that region were intercepted by the OS drag handler and
couldn't be clicked — the first option (1x1) was effectively unselectable
whenever a later option was already active. Switching to popper positioning
opens the menu below the trigger, away from the drag region.

Generated-By: PostHog Code
Task-Id: 1ec4f740-9596-4157-b560-13f0e751ad62
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.

0 participants