mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
table formatting
This commit is contained in:
@@ -133,7 +133,7 @@ const DashboardDevices: FC = () => {
|
|||||||
Table: `
|
Table: `
|
||||||
--data-table-library_grid-template-columns: 200px 130px 40px;
|
--data-table-library_grid-template-columns: 200px 130px 40px;
|
||||||
height: auto;
|
height: auto;
|
||||||
max-height: 96%;
|
max-height: 93%;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
::-webkit-scrollbar {
|
::-webkit-scrollbar {
|
||||||
display:none;
|
display:none;
|
||||||
@@ -484,21 +484,8 @@ const DashboardDevices: FC = () => {
|
|||||||
<Grid container justifyContent="space-between">
|
<Grid container justifyContent="space-between">
|
||||||
<Box color="warning.main" ml={1}>
|
<Box color="warning.main" ml={1}>
|
||||||
<Typography variant="h6">
|
<Typography variant="h6">
|
||||||
{truncate(coreData.devices[deviceIndex].n, 35)}
|
{truncate(coreData.devices[deviceIndex].n, 31)}
|
||||||
({shown_data.length})
|
({shown_data.length})
|
||||||
<IconButton sx={{ ml: 1 }} onClick={() => setShowDeviceInfo(true)}>
|
|
||||||
<InfoOutlinedIcon color="primary" sx={{ fontSize: 18, verticalAlign: 'middle' }} />
|
|
||||||
</IconButton>
|
|
||||||
<IconButton onClick={handleDownloadCsv}>
|
|
||||||
<DownloadIcon color="primary" sx={{ fontSize: 18, verticalAlign: 'middle' }} />
|
|
||||||
</IconButton>
|
|
||||||
<IconButton onClick={() => setOnlyFav(!onlyFav)}>
|
|
||||||
{onlyFav ? (
|
|
||||||
<StarIcon color="primary" sx={{ fontSize: 18, verticalAlign: 'middle' }} />
|
|
||||||
) : (
|
|
||||||
<StarBorderOutlinedIcon color="primary" sx={{ fontSize: 18, verticalAlign: 'middle' }} />
|
|
||||||
)}
|
|
||||||
</IconButton>
|
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
<Grid item justifyContent="flex-end">
|
<Grid item justifyContent="flex-end">
|
||||||
@@ -508,6 +495,22 @@ const DashboardDevices: FC = () => {
|
|||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
|
<Grid>
|
||||||
|
<IconButton onClick={() => setShowDeviceInfo(true)}>
|
||||||
|
<InfoOutlinedIcon color="primary" sx={{ fontSize: 18, verticalAlign: 'middle' }} />
|
||||||
|
</IconButton>
|
||||||
|
<IconButton onClick={handleDownloadCsv}>
|
||||||
|
<DownloadIcon color="primary" sx={{ fontSize: 18, verticalAlign: 'middle' }} />
|
||||||
|
</IconButton>
|
||||||
|
<IconButton onClick={() => setOnlyFav(!onlyFav)}>
|
||||||
|
{onlyFav ? (
|
||||||
|
<StarIcon color="primary" sx={{ fontSize: 18, verticalAlign: 'middle' }} />
|
||||||
|
) : (
|
||||||
|
<StarBorderOutlinedIcon color="primary" sx={{ fontSize: 18, verticalAlign: 'middle' }} />
|
||||||
|
)}
|
||||||
|
</IconButton>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
<Table
|
<Table
|
||||||
data={{ nodes: shown_data }}
|
data={{ nodes: shown_data }}
|
||||||
theme={data_theme}
|
theme={data_theme}
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ const DashboarDevicesDialog = ({
|
|||||||
onClose={close}
|
onClose={close}
|
||||||
sx={{
|
sx={{
|
||||||
'& .MuiDialog-paper': {
|
'& .MuiDialog-paper': {
|
||||||
borderRadius: '16px'
|
borderRadius: '12px'
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user