@@ -38,7 +38,7 @@ export const TableHeaderCell = ({
3838 return (
3939 < th
4040 className = { classNames (
41- 'p-2 text-xs font-bold text-gray-500 dark:text-gray-400 tracking-wide ' ,
41+ 'p-2 text-xs font-semibold text-gray-500 dark:text-gray-400' ,
4242 className
4343 ) }
4444 align = { align }
@@ -82,7 +82,7 @@ export const ItemRow = <T extends Record<string, string | number | ReactNode>>({
8282 columns : ColumnConfiguraton < T > [ ]
8383} ) => {
8484 return (
85- < tr className = "text-sm dark:text-gray-200" >
85+ < tr className = "group text-sm dark:text-gray-200" >
8686 { columns . map ( ( { key, width, align, renderValue, renderItem } ) => (
8787 < TableCell
8888 key = { `${ ( pageIndex ?? null ) === null ? '' : `page_${ pageIndex } _` } row_${ rowIndex } _${ String ( key ) } ` }
@@ -131,13 +131,13 @@ export const Table = <T extends Record<string, string | number | ReactNode>>({
131131 }
132132
133133 return (
134- < table className = "w-max overflow-x-auto md:w-full table-striped table-fixed" >
135- < thead >
136- < tr className = "text-xs font-bold text-gray-500 dark:text-gray-400" >
134+ < table className = "w-full border-collapse table-striped table-fixed" >
135+ < thead className = "sticky top-0 bg-white dark:bg-gray-900 z-10" >
136+ < tr className = "text-xs font-semibold text-gray-500 dark:text-gray-400" >
137137 { columns . map ( ( column ) => (
138138 < TableHeaderCell
139139 key = { `header_${ String ( column . key ) } ` }
140- className = { classNames ( 'p-2 tracking-wide ' , column . width ) }
140+ className = { classNames ( 'p-2' , column . width ) }
141141 align = { column . align }
142142 >
143143 { column . onSort ? (
0 commit comments