fix(ui): organization menu clipped when sidebar is collapsed#4876
Merged
Conversation
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
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.
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
DropdownMenuContenthad no explicit width, so it inheritedw-(--radix-dropdown-menu-trigger-width)from the base primitive. In icon mode the trigger shrinks to ~40px, dropping the menu to themin-w-32(128px) floor.Fix
Set an explicit
w-64on the org switcher'sDropdownMenuContent, 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: