mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-24 04:38:46 +00:00
Merge pull request #3701 from Dokploy/3690-organization-picker-not-scrollable
feat(sidebar): enhance dropdown menu styling and organization display
This commit is contained in:
@@ -630,15 +630,16 @@ function SidebarLogo() {
|
|||||||
</SidebarMenuButton>
|
</SidebarMenuButton>
|
||||||
</DropdownMenuTrigger>
|
</DropdownMenuTrigger>
|
||||||
<DropdownMenuContent
|
<DropdownMenuContent
|
||||||
className="rounded-lg"
|
className="rounded-lg max-h-[min(70vh,28rem)] flex flex-col"
|
||||||
align="start"
|
align="start"
|
||||||
side={isMobile ? "bottom" : "right"}
|
side={isMobile ? "bottom" : "right"}
|
||||||
sideOffset={4}
|
sideOffset={4}
|
||||||
>
|
>
|
||||||
<DropdownMenuLabel className="text-xs text-muted-foreground">
|
<DropdownMenuLabel className="text-xs text-muted-foreground shrink-0">
|
||||||
Organizations
|
Organizations
|
||||||
</DropdownMenuLabel>
|
</DropdownMenuLabel>
|
||||||
{organizations?.map((org) => {
|
<div className="overflow-y-auto overflow-x-hidden min-h-0 -mx-1 px-1">
|
||||||
|
{organizations?.map((org) => {
|
||||||
const isDefault = org.members?.[0]?.isDefault ?? false;
|
const isDefault = org.members?.[0]?.isDefault ?? false;
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
@@ -759,6 +760,7 @@ function SidebarLogo() {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
</div>
|
||||||
{(user?.role === "owner" ||
|
{(user?.role === "owner" ||
|
||||||
user?.role === "admin" ||
|
user?.role === "admin" ||
|
||||||
isCloud) && (
|
isCloud) && (
|
||||||
|
|||||||
Reference in New Issue
Block a user