feat: some colors fixed, table alignment

This commit is contained in:
Caio Cabral committed 2025-01-14 18:54:00 -05:00
1 parent d54272ba30
commit 6cdac32bce
6 files changed
+40 -43

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@ const BaseLabel = ({ label, styles, children }) => {
// Grab the default borderRadius from the theme to match button style
const { borderRadius } = theme.shape;
// Calculate padding for the label to mimic button. Appears to scale correctly, not 100% sure though.
const padding = theme.spacing(1 * 0.75, 2);
const padding = theme.spacing(3, 5);
return (
<Box
+14 -4
View File
@@ -43,12 +43,22 @@ const DataTable = ({ headers, data, config = { emptyView: "No data" } }) => {
<Table
stickyHeader
sx={{
"& :is(th)": { color: theme.palette.primary.contrastText },
"& :is(td)": { color: theme.palette.primary.contrastTextSecondary },
"&.MuiTable-root :is(.MuiTableHead-root, .MuiTableBody-root) :is(th, td)": {
paddingLeft: theme.spacing(8),
},
"& :is(th)": {
backgroundColor: theme.palette.secondary.main,
color: theme.palette.secondary.contrastText,
fontWeight: 600,
fontSize: "12px",
},
"& :is(td)": {
backgroundColor: theme.palette.primary.main,
color: theme.palette.primary.contrastTextSecondary,
},
}}
>
{/* TODO Check */}
<TableHead sx={{ backgroundColor: theme.palette.secondary.main }}>
<TableHead>
<TableRow>
{headers.map((header, index) => (
<TableCell