Skip to content

Commit b4f4883

Browse files
authored
fix: auto hide scrollbar on sidebar (#4697)
1 parent 48e24fb commit b4f4883

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

web/components/layout/auth/DesktopSidebar.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { ProFeatureWrapper } from "@/components/shared/ProBlockerComponents/ProFeatureWrapper";
22
import { Button } from "@/components/ui/button";
3+
import { ScrollArea } from "@/components/ui/scroll-area";
34
import { cn } from "@/lib/utils";
45
import { useLocalStorage } from "@/services/hooks/localStorage";
56
import { OnboardingState } from "@/services/hooks/useOrgOnboarding";
@@ -262,7 +263,11 @@ const DesktopSidebar = ({
262263

263264
{/* Main content area */}
264265
<div className="flex min-h-0 flex-1 flex-col">
265-
<div className="mb-2 flex h-full flex-1 flex-col justify-between overflow-y-auto">
266+
<ScrollArea
267+
className="mb-2 flex h-full flex-1 flex-col justify-between"
268+
width="thin"
269+
type="scroll"
270+
>
266271
{/* Navigation items */}
267272
<div className="flex flex-col">
268273
{/* Quickstart Card - Only show if organization hasn't integrated */}
@@ -359,7 +364,7 @@ const DesktopSidebar = ({
359364
</div>
360365
</div>
361366
))}
362-
</div>
367+
</ScrollArea>
363368

364369
<div className="flex flex-col gap-2 p-3">
365370
<Button

0 commit comments

Comments
 (0)