diff --git a/compass/components/Table/Index.tsx b/compass/components/Table/Index.tsx index 9c7329b..d27110f 100644 --- a/compass/components/Table/Index.tsx +++ b/compass/components/Table/Index.tsx @@ -186,7 +186,7 @@ export const Table = () => { > {row.getVisibleCells().map((cell, i) => ( {flexRender(cell.column.columnDef.cell, cell.getContext())} diff --git a/compass/components/Table/PrimaryTableCell.tsx b/compass/components/Table/PrimaryTableCell.tsx index 47e87e0..a6e265f 100644 --- a/compass/components/Table/PrimaryTableCell.tsx +++ b/compass/components/Table/PrimaryTableCell.tsx @@ -12,9 +12,9 @@ export const PrimaryTableCell = ({ getValue, row, column, table }) => { }; return ( -
+
- + {pageContent}
diff --git a/compass/components/Table/TableCell.tsx b/compass/components/Table/TableCell.tsx index a84e40f..a6dfc02 100644 --- a/compass/components/Table/TableCell.tsx +++ b/compass/components/Table/TableCell.tsx @@ -12,6 +12,10 @@ export const TableCell = ({ getValue, row, column, table }) => { const onBlur = () => { table.options.meta?.updateData(row.index, column.id, value); }; +// focus:border focus:border-gray-200 + const className = "w-full p-3 bg-inherit rounded-md outline-none border border-transparent relative " + + "focus:shadow-md focus:border-gray-200 focus:bg-white focus:z-20 focus:p-4 focus:-m-1 " + + "focus:w-[calc(100%+0.5rem)]"; - return setValue(e.target.value)} onBlur={onBlur} />; + return setValue(e.target.value)} onBlur={onBlur} />; };