Skip to content

Commit b88f83a

Browse files
committed
🎨 Tweak table styles
1 parent 7bcf5f0 commit b88f83a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

frontend/src/components/ui/table.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function Table({ className, ...props }: React.ComponentProps<"table">) {
66
return (
77
<div
88
data-slot="table-container"
9-
className="relative w-full overflow-x-auto"
9+
className="relative w-full overflow-x-auto rounded-lg border"
1010
>
1111
<table
1212
data-slot="table"
@@ -21,7 +21,7 @@ function TableHeader({ className, ...props }: React.ComponentProps<"thead">) {
2121
return (
2222
<thead
2323
data-slot="table-header"
24-
className={cn("[&_tr]:border-b", className)}
24+
className={cn("bg-muted/50 [&_tr]:border-b", className)}
2525
{...props}
2626
/>
2727
)
@@ -68,7 +68,7 @@ function TableHead({ className, ...props }: React.ComponentProps<"th">) {
6868
<th
6969
data-slot="table-head"
7070
className={cn(
71-
"text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
71+
"text-muted-foreground h-11 px-4 text-left align-middle text-xs font-semibold uppercase tracking-wider whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
7272
className
7373
)}
7474
{...props}
@@ -81,7 +81,7 @@ function TableCell({ className, ...props }: React.ComponentProps<"td">) {
8181
<td
8282
data-slot="table-cell"
8383
className={cn(
84-
"p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
84+
"px-4 py-3 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
8585
className
8686
)}
8787
{...props}

0 commit comments

Comments
 (0)