mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-18 05:10:45 +00:00
CE-604 make grid always fit on screen, so h-scrollbar & column headers are always present (by turning off autoHeight and adding a set height
This commit is contained in:
@ -2019,7 +2019,7 @@ function RecordQuery({table, launchProcess}: Props): JSX.Element
|
|||||||
page={pageNumber}
|
page={pageNumber}
|
||||||
checkboxSelection
|
checkboxSelection
|
||||||
disableSelectionOnClick
|
disableSelectionOnClick
|
||||||
autoHeight
|
autoHeight={false}
|
||||||
rows={rows}
|
rows={rows}
|
||||||
// getRowHeight={() => "auto"} // maybe nice? wraps values in cells...
|
// getRowHeight={() => "auto"} // maybe nice? wraps values in cells...
|
||||||
columns={columnsModel}
|
columns={columnsModel}
|
||||||
@ -2043,7 +2043,7 @@ function RecordQuery({table, launchProcess}: Props): JSX.Element
|
|||||||
getRowId={(row) => row.__rowIndex}
|
getRowId={(row) => row.__rowIndex}
|
||||||
selectionModel={rowSelectionModel}
|
selectionModel={rowSelectionModel}
|
||||||
hideFooterSelectedRowCount={true}
|
hideFooterSelectedRowCount={true}
|
||||||
sx={{border: 0}}
|
sx={{border: 0, height: "calc(100vh - 250px)"}}
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
</Card>
|
</Card>
|
||||||
|
Reference in New Issue
Block a user