Skip to content

Commit ce0884d

Browse files
authored
Reduce the workspace switcher size to be max-96 (#5315)
1 parent 91b4284 commit ce0884d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

web/apps/dashboard/components/navigation/sidebar/team-switcher.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
DropdownMenuSeparator,
1010
DropdownMenuTrigger,
1111
} from "@/components/ui/dropdown-menu";
12-
import { ScrollArea } from "@/components/ui/scroll-area";
1312
import { useSidebar } from "@/components/ui/sidebar";
1413
import { setLastUsedOrgCookie, setSessionCookie } from "@/lib/auth/cookies";
1514
import { trpc } from "@/lib/trpc/client";
@@ -150,7 +149,7 @@ export const WorkspaceSwitcher: React.FC = () => {
150149
>
151150
<DropdownMenuLabel>Workspaces</DropdownMenuLabel>
152151
<DropdownMenuGroup>
153-
<ScrollArea className="h-96">
152+
<div className="max-h-96 overflow-y-auto">
154153
{filteredOrgs.map((membership) => (
155154
<DropdownMenuItem
156155
key={membership.id}
@@ -175,7 +174,7 @@ export const WorkspaceSwitcher: React.FC = () => {
175174
)}
176175
</DropdownMenuItem>
177176
))}
178-
</ScrollArea>
177+
</div>
179178
<DropdownMenuSeparator />
180179
<DropdownMenuItem asChild>
181180
<Link href="/new" className="flex items-center">

0 commit comments

Comments
 (0)