mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-21 13:55:33 +02:00
fix(ui): organization menu clipped when sidebar is collapsed
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 commit is contained in:
@@ -648,7 +648,7 @@ function SidebarLogo() {
|
||||
</SidebarMenuButton>
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent
|
||||
className="rounded-lg max-h-[min(70vh,28rem)] flex flex-col"
|
||||
className="w-64 rounded-lg max-h-[min(70vh,28rem)] flex flex-col"
|
||||
align="start"
|
||||
side={isMobile ? "bottom" : "right"}
|
||||
sideOffset={4}
|
||||
|
||||
Reference in New Issue
Block a user