fix: sticky columns in DataTable (#21278)
* fix: sticky columns in DataTable * update th color * remove rounded corner * border change
This commit is contained in:
@@ -163,6 +163,7 @@ export function DataTable<TData>({
|
||||
}}
|
||||
className={classNames(
|
||||
"relative flex shrink-0 items-center",
|
||||
"bg-muted",
|
||||
column.getIsPinned() && "top-0 z-20 sm:sticky"
|
||||
)}>
|
||||
<TableHeadLabel header={header} />
|
||||
@@ -287,7 +288,7 @@ function DataTableBody<TData>({
|
||||
|
||||
return (
|
||||
<TableBody
|
||||
className="border-subtle relative grid overflow-hidden rounded-xl border"
|
||||
className="border-subtle relative grid border-t"
|
||||
data-testid={testId}
|
||||
style={{ height: tableHeight }}>
|
||||
{rowsToRender.map(({ row, virtualItem }) => (
|
||||
|
||||
Reference in New Issue
Block a user