@@ -22,7 +22,7 @@ export const Table = forwardRef<HTMLTableElement, TableProps>(
22
22
fullWidth && "w-full"
23
23
) }
24
24
>
25
- < table ref = { ref } className = { cn ( "w-full divide-y " , className ) } >
25
+ < table ref = { ref } className = { cn ( "w-full" , className ) } >
26
26
{ children }
27
27
</ table >
28
28
</ div >
@@ -40,7 +40,10 @@ export const TableHeader = forwardRef<HTMLTableSectionElement, TableHeaderProps>
40
40
return (
41
41
< thead
42
42
ref = { ref }
43
- className = { cn ( "rounded-t-md" , "relative divide-y divide-grid-dimmed" , className ) }
43
+ className = { cn (
44
+ "sticky top-0 z-10 divide-y divide-grid-dimmed rounded-t-md bg-background-dimmed after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-grid-dimmed" ,
45
+ className
46
+ ) }
44
47
>
45
48
{ children }
46
49
</ thead >
@@ -56,7 +59,10 @@ type TableBodyProps = {
56
59
export const TableBody = forwardRef < HTMLTableSectionElement , TableBodyProps > (
57
60
( { className, children } , ref ) => {
58
61
return (
59
- < tbody ref = { ref } className = { cn ( "relative divide-y divide-grid-dimmed" , className ) } >
62
+ < tbody
63
+ ref = { ref }
64
+ className = { cn ( "relative divide-y divide-grid-dimmed overflow-y-auto" , className ) }
65
+ >
60
66
{ children }
61
67
</ tbody >
62
68
) ;
@@ -138,7 +144,7 @@ type TableCellProps = TableCellBasicProps & {
138
144
} ;
139
145
140
146
const stickyStyles =
141
- "sticky right-0 z-10 w-[2.8rem] min-w-[2.8rem] bg-background-dimmed before:absolute before:pointer-events-none before:-left-8 before:top-0 before:h-full before:min-w-[2rem] before:bg-gradient-to-r before:from-transparent before:to-background before:content-[''] group-hover/table-row:before:to-charcoal-900 " ;
147
+ "sticky right-0 z-10 w-[2.8rem] min-w-[2.8rem] bg-background-dimmed before:absolute before:pointer-events-none before:-left-8 before:top-0 before:h-full before:min-w-[2rem]" ;
142
148
143
149
export const TableCell = forwardRef < HTMLTableCellElement , TableCellProps > (
144
150
(
@@ -180,7 +186,7 @@ export const TableCell = forwardRef<HTMLTableCellElement, TableCellProps>(
180
186
className = { cn (
181
187
"text-xs text-charcoal-400" ,
182
188
to || onClick || hasAction
183
- ? "cursor-pointer group-hover/table-row:bg-charcoal-900 "
189
+ ? "cursor-pointer group-hover/table-row:bg-charcoal-800 "
184
190
: "px-3 py-3 align-middle" ,
185
191
! to && ! onClick && alignmentClassName ,
186
192
isSticky && stickyStyles ,
0 commit comments