change style datatable

This commit is contained in:
Amirhossein Mahmoodi
2024-07-14 13:34:46 +03:30
parent a5a40b497a
commit c63c8c46ac
2 changed files with 7 additions and 3 deletions

View File

@@ -218,14 +218,18 @@ const DataTable_TableHeadCell = ({ columnVirtualizer, header, staticColumnIndex,
textAlign: "start",
color: "#fff",
fontWeight: "400",
whiteSpace: (columnDef.header?.length ?? 0) < 20 ? "nowrap" : "normal",
whiteSpace: "nowrap"
}}
>
{HeaderElement}
</Box>
{column.getCanSort() && columnDefType !== "group" && (
<MRT_TableHeadCellSortLabel
sx={{ width: 20, color: "#fff" }}
sx={{
width: 20, '& .MuiTableSortLabel-icon': {
color: `#fff !important`,
}
}}
header={header}
table={table}
/>

View File

@@ -51,7 +51,7 @@ const DataTable_TopToolbar = ({ mutate, need_filter, table, columns, table_url,
display: "flex",
gap: "0.5rem",
justifyContent: "space-between",
p: "0.5rem",
py: "0.5rem",
position: stackAlertBanner ? "relative" : "absolute",
right: 0,
top: 0,