condensed table for entity data

This commit is contained in:
proddy
2023-05-25 20:16:19 +02:00
parent 2571f5e5e6
commit 7330ca20f8

View File

@@ -155,6 +155,11 @@ const DashboardDevices: FC = () => {
::-webkit-scrollbar { ::-webkit-scrollbar {
display:none; display:none;
} }
`,
BaseRow: `
.td {
height: 32px;
}
`, `,
BaseCell: ` BaseCell: `
&:nth-of-type(1) { &:nth-of-type(1) {
@@ -499,7 +504,6 @@ const DashboardDevices: FC = () => {
<Box color="warning.main" ml={1}> <Box color="warning.main" ml={1}>
<Typography noWrap variant="h6"> <Typography noWrap variant="h6">
{coreData.devices[deviceIndex].n} {coreData.devices[deviceIndex].n}
&nbsp;({shown_data.length})
</Typography> </Typography>
</Box> </Box>
<Grid item zeroMinWidth justifyContent="flex-end"> <Grid item zeroMinWidth justifyContent="flex-end">
@@ -510,6 +514,8 @@ const DashboardDevices: FC = () => {
</Grid> </Grid>
<Grid item xs> <Grid item xs>
<Typography sx={{ ml: 1 }} variant="subtitle2" color="primary">
{shown_data.length + ' ' + LL.ENTITIES()}
<IconButton onClick={() => setShowDeviceInfo(true)}> <IconButton onClick={() => setShowDeviceInfo(true)}>
<InfoOutlinedIcon color="primary" sx={{ fontSize: 18, verticalAlign: 'middle' }} /> <InfoOutlinedIcon color="primary" sx={{ fontSize: 18, verticalAlign: 'middle' }} />
</IconButton> </IconButton>
@@ -526,6 +532,7 @@ const DashboardDevices: FC = () => {
<IconButton onClick={refreshData}> <IconButton onClick={refreshData}>
<RefreshIcon color="primary" sx={{ fontSize: 18, verticalAlign: 'middle' }} /> <RefreshIcon color="primary" sx={{ fontSize: 18, verticalAlign: 'middle' }} />
</IconButton> </IconButton>
</Typography>
</Grid> </Grid>
</Box> </Box>