mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-18 13:20:43 +00:00
Re-do css on table skeleton, per changes in the included DataTable*Cell components
This commit is contained in:
@ -93,41 +93,25 @@ function TableCard({noRowsFoundHTML, data, rowsPerPage, hidePaginationDropdown,
|
|||||||
/>
|
/>
|
||||||
: noRowsFoundHTML ?
|
: noRowsFoundHTML ?
|
||||||
<Box p={3} pt={0} pb={3} sx={{textAlign: "center"}}>
|
<Box p={3} pt={0} pb={3} sx={{textAlign: "center"}}>
|
||||||
<MDTypography
|
<MDTypography variant="subtitle2" color="secondary" fontWeight="regular">
|
||||||
variant="subtitle2"
|
{noRowsFoundHTML ? (parse(noRowsFoundHTML)) : "No rows found"}
|
||||||
color="secondary"
|
|
||||||
fontWeight="regular"
|
|
||||||
>
|
|
||||||
{
|
|
||||||
noRowsFoundHTML ? (
|
|
||||||
parse(noRowsFoundHTML)
|
|
||||||
) : "No rows found"
|
|
||||||
}
|
|
||||||
</MDTypography>
|
</MDTypography>
|
||||||
</Box>
|
</Box>
|
||||||
:
|
:
|
||||||
<TableContainer sx={{boxShadow: "none"}}>
|
<TableContainer sx={{boxShadow: "none"}}>
|
||||||
<Table>
|
<Table component="div" sx={{display: "grid", gridTemplateRows: "auto", gridTemplateColumns: "1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr"}}>
|
||||||
<Box component="thead">
|
|
||||||
<TableRow sx={{alignItems: "flex-end"}} key="header">
|
|
||||||
{Array(8).fill(0).map((_, i) =>
|
{Array(8).fill(0).map((_, i) =>
|
||||||
<DataTableHeadCell key={`head-${i}`} sorted={false} width="auto" align="center">
|
<DataTableHeadCell key={`head-${i}`} sorted={false} width="auto" align="center">
|
||||||
<Skeleton width="100%" />
|
<Skeleton width="100%" />
|
||||||
</DataTableHeadCell>
|
</DataTableHeadCell>
|
||||||
)}
|
)}
|
||||||
</TableRow>
|
|
||||||
</Box>
|
|
||||||
<TableBody>
|
|
||||||
{Array(5).fill(0).map((_, i) =>
|
{Array(5).fill(0).map((_, i) =>
|
||||||
<TableRow sx={{verticalAlign: "top"}} key={`row-${i}`}>
|
Array(8).fill(0).map((_, j) =>
|
||||||
{Array(8).fill(0).map((_, j) =>
|
|
||||||
<DataTableBodyCell key={`cell-${i}-${j}`} align="center">
|
<DataTableBodyCell key={`cell-${i}-${j}`} align="center">
|
||||||
<DefaultCell isFooter={false}><Skeleton /></DefaultCell>
|
<DefaultCell isFooter={false}><Skeleton /></DefaultCell>
|
||||||
</DataTableBodyCell>
|
</DataTableBodyCell>
|
||||||
|
)
|
||||||
)}
|
)}
|
||||||
</TableRow>
|
|
||||||
)}
|
|
||||||
</TableBody>
|
|
||||||
</Table>
|
</Table>
|
||||||
</TableContainer>
|
</TableContainer>
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user