Skip to content

Commit deb55c0

Browse files
authored
fix: sticky columns in DataTable (calcom#21278)
* fix: sticky columns in DataTable * update th color * remove rounded corner * border change
1 parent 7fc11ff commit deb55c0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/features/data-table/components/DataTable.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ export function DataTable<TData>({
163163
}}
164164
className={classNames(
165165
"relative flex shrink-0 items-center",
166+
"bg-muted",
166167
column.getIsPinned() && "top-0 z-20 sm:sticky"
167168
)}>
168169
<TableHeadLabel header={header} />
@@ -287,7 +288,7 @@ function DataTableBody<TData>({
287288

288289
return (
289290
<TableBody
290-
className="border-subtle relative grid overflow-hidden rounded-xl border"
291+
className="border-subtle relative grid border-t"
291292
data-testid={testId}
292293
style={{ height: tableHeight }}>
293294
{rowsToRender.map(({ row, virtualItem }) => (

0 commit comments

Comments
 (0)