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}
/>