Skip to content

Commit

Permalink
table: Pad and color cells
Browse files Browse the repository at this point in the history
Cells containing SVGs keep their original padding.

Signed-off-by: Zack Cerza <[email protected]>
  • Loading branch information
zmc committed Jan 25, 2024
1 parent 0331e5f commit dfce1e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/JobList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ function JobDetailPanel(props: JobDetailPanelProps): ReactNode {
borderLeft: 1,
borderColor: (theme) => theme.palette.grey[800],
padding: 1,
color: (theme) => theme.palette.text.primary,
}}
>
<Typography
Expand Down
8 changes: 6 additions & 2 deletions src/lib/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,13 @@ export default function useDefaultTableOptions<TData extends MRT_RowData>(): Par
muiTableBodyProps: {
sx: {
'tr td': {
paddingBottom: 0,
paddingBottom: '5px',
paddingRight: 0,
paddingTop: 0,
paddingTop: '5px',
color: "black",
},
'tr td:has(svg)': {
padding: 0,
},
'tr td .MuiButtonBase-root': {color: "inherit"},
'tr.error td': {
Expand Down

0 comments on commit dfce1e1

Please sign in to comment.