Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
💄 Update table component
Luke Vella9516c8dd8815
diff --git a/packages/ui/src/table.tsx b/packages/ui/src/table.tsxindex 6ac0761c1..a0b9b86f3 100644--- a/packages/ui/src/table.tsx+++ b/packages/ui/src/table.tsx@@ -6,7 +6,7 @@ const Table = React.forwardRef<HTMLTableElement,React.HTMLAttributes<HTMLTableElement>>(({ className, ...props }, ref) => (- <div className="w-full overflow-auto">+ <div className="relative w-full overflow-auto"><tableref={ref}className={cn("w-full caption-bottom text-sm", className)}@@ -42,7 +42,10 @@ const TableFooter = React.forwardRef<>(({ className, ...props }, ref) => (<tfootref={ref}- className={cn("bg-primary text-primary-foreground font-medium", className)}+ className={cn(+ "bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",+ className,+ )}{...props}/>));@@ -55,7 +58,7 @@ const TableRow = React.forwardRef<<trref={ref}className={cn(- "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",+ "hover:bg-muted/50 data-[state=selected]:bg-muted border-b",className,)}{...props}@@ -70,7 +73,7 @@ const TableHead = React.forwardRef<<thref={ref}className={cn(- "text-muted-foreground h-12 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0",+ "text-muted-foreground h-10 px-2 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",className,)}{...props}@@ -84,7 +87,10 @@ const TableCell = React.forwardRef<>(({ className, ...props }, ref) => (<tdref={ref}- className={cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className)}+ className={cn(+ "p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",+ className,+ )}{...props}/>));