Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

fix allowOverflow definition on scroll-area

Amruth Pillaif0b18019d5a1
diff --git a/apps/client/src/pages/dashboard/resumes/page.tsx b/apps/client/src/pages/dashboard/resumes/page.tsx
index 4a2b3c093..0bd8b3c68 100644
--- a/apps/client/src/pages/dashboard/resumes/page.tsx
+++ b/apps/client/src/pages/dashboard/resumes/page.tsx
@@ -50,8 +50,8 @@ export const ResumesPage = () => {
</div>
<ScrollArea
+ allowOverflow
className="h-[calc(100vh-140px)] overflow-visible lg:h-[calc(100vh-88px)]"
- allowOverflow={true}
>
<TabsContent value="grid">
<GridView />
diff --git a/libs/ui/src/components/scroll-area.tsx b/libs/ui/src/components/scroll-area.tsx
index b85cee665..7811db393 100644
--- a/libs/ui/src/components/scroll-area.tsx
+++ b/libs/ui/src/components/scroll-area.tsx
@@ -5,9 +5,9 @@ import { forwardRef } from "react";
export const ScrollArea = forwardRef<
React.ElementRef<typeof ScrollAreaPrimitive.Root>,
React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root> & {
+ allowOverflow?: boolean;
hideScrollbar?: boolean;
orientation?: "vertical" | "horizontal";
- allowOverflow?: boolean;
}
>(
(
@@ -29,8 +29,7 @@ export const ScrollArea = forwardRef<
{...props}
>
<ScrollAreaPrimitive.Viewport
- className="size-full rounded-[inherit]"
- style={allowOverflow ? { overflowX: "visible", overflowY: "visible" } : {}}
+ className={cn("size-full rounded-[inherit]", allowOverflow && "!overflow-visible")}
>
{children}
</ScrollAreaPrimitive.Viewport>