Skip to content

Commit

Permalink
table: Add some padding to table cells
Browse files Browse the repository at this point in the history
But not those which hold SVGs.

Signed-off-by: Zack Cerza <[email protected]>
  • Loading branch information
zmc committed Jan 25, 2024
1 parent f095ac0 commit c1d551c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/lib/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,14 @@ export default function useDefaultTableOptions<TData extends MRT_RowData>(): Par
muiTableBodyProps: {
sx: {
'tr td': {
paddingBottom: 0,
paddingBottom: '5px',
paddingRight: 0,
paddingTop: 0,
paddingTop: '5px',
color: "inherit",
},
'tr td:has(svg)': {
padding: 0,
},
'tr td .MuiButtonBase-root': {color: "inherit"},
'tr.error td': {
backgroundColor: palette.error.main,
Expand Down

0 comments on commit c1d551c

Please sign in to comment.