We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e62faf6 commit 9d5a179Copy full SHA for 9d5a179
1 file changed
components/DataTable.tsx
@@ -27,11 +27,9 @@ export const DataTable = <T,>({
27
<TableHead
28
key={columnIndex}
29
className={cn(
30
- 'bg-dark-400 text-purple-100 py-4',
+ 'bg-dark-400 text-purple-100 py-4 first:pl-5 last:pr-5',
31
headerCellClassName,
32
- column.headClassName,
33
- columnIndex === 0 && 'pl-5',
34
- columnIndex === columns.length - 1 && 'pr-5'
+ column.headClassName
35
)}
36
>
37
{column.header}
@@ -52,11 +50,9 @@ export const DataTable = <T,>({
52
50
<TableCell
53
51
54
55
- 'py-4',
+ 'py-4 first:pl-5 last:pr-5',
56
bodyCellClassName,
57
- column.cellClassName,
58
59
+ column.cellClassName
60
61
62
{column.cell(row, rowIndex)}
0 commit comments