Skip to content

fix(ui): organization menu clipped when sidebar is collapsed#4876

Merged
Siumauricio merged 1 commit into
canaryfrom
fix/collapsed-sidebar-org-menu-width
Jul 21, 2026
Merged

fix(ui): organization menu clipped when sidebar is collapsed#4876
Siumauricio merged 1 commit into
canaryfrom
fix/collapsed-sidebar-org-menu-width

Conversation

@Siumauricio

Copy link
Copy Markdown
Contributor

Problem

When the sidebar is collapsed to icon mode, the organization switcher's dropdown menu renders too narrow (~128px), cutting off the organization name and cramming the action buttons against the edge.

Closes #4840

Cause

The org switcher's DropdownMenuContent had no explicit width, so it inherited w-(--radix-dropdown-menu-trigger-width) from the base primitive. In icon mode the trigger shrinks to ~40px, dropping the menu to the min-w-32 (128px) floor.

Fix

Set an explicit w-64 on the org switcher's DropdownMenuContent, matching the pattern already used by the notification dropdown in the same file. The menu now sizes to its content regardless of the collapsed trigger width.

Before / After

Verified in the browser with the sidebar collapsed:

Menu width Org name Text clipped
Before 128px 16px (hidden) yes
After 256px fully visible no

The organization switcher's DropdownMenuContent inherited its width from
the collapsed trigger (~40px) via the base primitive's
w-(--radix-dropdown-menu-trigger-width), clamping the menu to the
min-w-32 (128px) floor. This cut off the org name and action buttons in
icon mode.

Set an explicit w-64 so the menu fits its content regardless of the
trigger width, matching the pattern already used by the notification
dropdown in the same file.

Fixes #4840
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jul 21, 2026
@Siumauricio
Siumauricio merged commit cbec72e into canary Jul 21, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Organization sidebar menu not properly rendered when sidebar is collapsed

1 participant