diff --git a/src/components/Table.tsx b/src/components/Table.tsx index 9791dd59..37bc118a 100644 --- a/src/components/Table.tsx +++ b/src/components/Table.tsx @@ -86,7 +86,7 @@ export const TABLE_DEFAULT_STYLING = { tableHeaderClassName: '', headerRowClassName: '', headerColumnClassName: - 'px-4 py-3 border-base-content/10 text-base-content/50', + 'px-4 py-3 border-base-content/10 text-base-content/50 text-sm font-medium', tableBodyClassName: '', bodyRowClassName: 'border-t border-base-content/10', bodyColumnClassName: 'px-4 py-3 text-base-content', @@ -222,14 +222,37 @@ const Table = ({ }, [pageSize, setPageSize]); return ( -
-
- - +
+
+
+ {table.getHeaderGroups().map((headerGroup) => ( {headerGroup.headers.map((header) => { const columnRelativeDepth = @@ -262,6 +285,7 @@ const Table = ({ { 'border-b': header.colSpan > 1, }, + TABLE_DEFAULT_STYLING.headerColumnClassName, tableClassNames.headerColumnClassName )} > @@ -311,7 +335,12 @@ const Table = ({ ))} - + {table.getRowModel().rows.map((row) => { const customRowContent = renderCustomRow?.(row); @@ -320,12 +349,19 @@ const Table = ({ } return ( - + {row.getVisibleCells().map((cell) => ( - + {renderFooter && ( - + {table.getAllLeafColumns().map((column) => (
@@ -342,14 +378,25 @@ const Table = ({ ); })}
@@ -372,7 +419,13 @@ const Table = ({ emptyContent} {data.length > 0 && table.getRowModel().rows.length > 0 && !isLoading && ( -
+