Skip to content

Commit cfbccf9

Browse files
committed
Dashboard: Fix table row not clickable in safari because of sticky thead
1 parent bf81dee commit cfbccf9

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

apps/dashboard/src/@/components/ui/table.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@ const TableHeader = React.forwardRef<
2424
>(({ className, ...props }, ref) => (
2525
<thead
2626
ref={ref}
27-
className={cn(
28-
"border-border border-b bg-background",
29-
"sticky top-0 z-20 border-none before:absolute before:inset-0 before:border-border before:border-b",
30-
className,
31-
)}
27+
className={cn("relative border-b bg-background", className)}
3228
{...props}
3329
/>
3430
));

apps/playground-web/src/components/ui/table.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@ const TableHeader = React.forwardRef<
2424
>(({ className, ...props }, ref) => (
2525
<thead
2626
ref={ref}
27-
className={cn(
28-
"border-border border-b bg-background",
29-
"sticky top-0 z-20 border-none before:absolute before:inset-0 before:border-border before:border-b",
30-
className,
31-
)}
27+
className={cn("relative border-b bg-background", className)}
3228
{...props}
3329
/>
3430
));

0 commit comments

Comments
 (0)