Skip to content

Commit febbdef

Browse files
authored
Merge pull request #2035 from noreb001/bugfix/CardClippingIssue
bugfix: Fixed clipping issue with cards on dashboard page
2 parents 6110440 + 3f01a9e commit febbdef

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

apps/client/src/pages/dashboard/resumes/page.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ export const ResumesPage = () => {
4949
</TabsList>
5050
</div>
5151

52-
<ScrollArea className="h-[calc(100vh-140px)] lg:h-[calc(100vh-88px)]">
52+
<ScrollArea
53+
className="h-[calc(100vh-140px)] overflow-visible lg:h-[calc(100vh-88px)]"
54+
allowOverflow={true}
55+
>
5356
<TabsContent value="grid">
5457
<GridView />
5558
</TabsContent>

libs/ui/src/components/scroll-area.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ export const ScrollArea = forwardRef<
77
React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root> & {
88
hideScrollbar?: boolean;
99
orientation?: "vertical" | "horizontal";
10+
allowOverflow?: boolean;
1011
}
1112
>(
1213
(
1314
{
1415
type = "scroll",
1516
orientation = "vertical",
1617
hideScrollbar = false,
18+
allowOverflow = false,
1719
className,
1820
children,
1921
...props
@@ -26,7 +28,10 @@ export const ScrollArea = forwardRef<
2628
className={cn("relative overflow-hidden", className)}
2729
{...props}
2830
>
29-
<ScrollAreaPrimitive.Viewport className="size-full rounded-[inherit]">
31+
<ScrollAreaPrimitive.Viewport
32+
className="size-full rounded-[inherit]"
33+
style={allowOverflow ? { overflowX: "visible", overflowY: "visible" } : {}}
34+
>
3035
{children}
3136
</ScrollAreaPrimitive.Viewport>
3237
<ScrollBar orientation={orientation} className={cn(hideScrollbar && "opacity-0")} />

0 commit comments

Comments
 (0)