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