Fix book table data grid headers

This commit is contained in:
Reckless_Satoshi 2024-05-01 03:01:52 +01:00
parent ea3ff1c238
commit 69b72d4231
No known key found for this signature in database
GPG Key ID: 9C4585B561315571

View File

@ -45,7 +45,6 @@ const ClickThroughDataGrid = styled(DataGrid)({
'& .MuiDataGrid-overlayWrapperInner': { '& .MuiDataGrid-overlayWrapperInner': {
pointerEvents: 'none', pointerEvents: 'none',
}, },
...{ headerStyleFix },
}); });
const premiumColor = function (baseColor: string, accentColor: string, point: number): string { const premiumColor = function (baseColor: string, accentColor: string, point: number): string {
@ -913,6 +912,7 @@ const BookTable = ({
} }
> >
<ClickThroughDataGrid <ClickThroughDataGrid
sx={headerStyleFix}
localeText={localeText} localeText={localeText}
rowHeight={3.714 * theme.typography.fontSize} rowHeight={3.714 * theme.typography.fontSize}
headerHeight={3.25 * theme.typography.fontSize} headerHeight={3.25 * theme.typography.fontSize}
@ -950,6 +950,7 @@ const BookTable = ({
<Dialog open={fullscreen} fullScreen={true}> <Dialog open={fullscreen} fullScreen={true}>
<Paper style={{ width: '100%', height: '100%', overflow: 'auto' }}> <Paper style={{ width: '100%', height: '100%', overflow: 'auto' }}>
<ClickThroughDataGrid <ClickThroughDataGrid
sx={headerStyleFix}
localeText={localeText} localeText={localeText}
rowHeight={3.714 * theme.typography.fontSize} rowHeight={3.714 * theme.typography.fontSize}
headerHeight={3.25 * theme.typography.fontSize} headerHeight={3.25 * theme.typography.fontSize}