remove Battery Temperature in Overview and Detailed Battery View

This commit is contained in:
Yinyin Liu 2026-03-09 10:23:15 +01:00
parent f8b9428ce4
commit 5359ebba70
2 changed files with 62 additions and 60 deletions

View File

@ -634,66 +634,66 @@ function DetailedBatteryViewSodistore(
{/*----------------------------------------------------------------------------------------------------------------------------------*/}
{/*Temperature List*/}
<Card
sx={{
overflow: 'visible',
marginTop: '20px',
marginLeft: '20px',
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
border: '2px solid #ccc',
borderRadius: '12px',
height: '270px'
}}
>
<Typography
variant="h6"
component="div"
sx={{
marginTop: '10px',
borderBottom: '1px solid #ccc',
fontWeight: 'bold'
}}
>
Battery Temperatures
</Typography>
{/*<Card*/}
{/* sx={{*/}
{/* overflow: 'visible',*/}
{/* marginTop: '20px',*/}
{/* marginLeft: '20px',*/}
{/* display: 'flex',*/}
{/* flexDirection: 'column',*/}
{/* alignItems: 'center',*/}
{/* border: '2px solid #ccc',*/}
{/* borderRadius: '12px',*/}
{/* height: '270px'*/}
{/* }}*/}
{/*>*/}
{/* <Typography*/}
{/* variant="h6"*/}
{/* component="div"*/}
{/* sx={{*/}
{/* marginTop: '10px',*/}
{/* borderBottom: '1px solid #ccc',*/}
{/* fontWeight: 'bold'*/}
{/* }}*/}
{/* >*/}
{/* Battery Temperatures*/}
{/* </Typography>*/}
<TableContainer
component={Paper}
sx={{
marginTop: '20px',
width: '100%',
maxHeight: '270px', // scrolling threshold
overflowY: 'auto'
}}
>
<Table size="medium" stickyHeader aria-label="temperature table">
<TableBody>
{Object.entries(
props.batteryData.BatteryDeligreenDataRecord
.TemperaturesList || {}
).map(([label, value]) => (
<TableRow key={label}>
<TableCell align="left" sx={{ fontWeight: 'bold' }}>
{label}
</TableCell>
<TableCell
align="right"
sx={{
width: '6ch',
whiteSpace: 'nowrap',
paddingRight: '12px'
}}
>
{value + ' °C'}
</TableCell>
</TableRow>
))}
</TableBody>
</Table>
</TableContainer>
</Card>
{/* <TableContainer*/}
{/* component={Paper}*/}
{/* sx={{*/}
{/* marginTop: '20px',*/}
{/* width: '100%',*/}
{/* maxHeight: '270px',*/}
{/* overflowY: 'auto'*/}
{/* }}*/}
{/* >*/}
{/* <Table size="medium" stickyHeader aria-label="temperature table">*/}
{/* <TableBody>*/}
{/* {Object.entries(*/}
{/* props.batteryData.BatteryDeligreenDataRecord*/}
{/* .TemperaturesList || {}*/}
{/* ).map(([label, value]) => (*/}
{/* <TableRow key={label}>*/}
{/* <TableCell align="left" sx={{ fontWeight: 'bold' }}>*/}
{/* {label}*/}
{/* </TableCell>*/}
{/* <TableCell*/}
{/* align="right"*/}
{/* sx={{*/}
{/* width: '6ch',*/}
{/* whiteSpace: 'nowrap',*/}
{/* paddingRight: '12px'*/}
{/* }}*/}
{/* >*/}
{/* {value + ' °C'}*/}
{/* </TableCell>*/}
{/* </TableRow>*/}
{/* ))}*/}
{/* </TableBody>*/}
{/* </Table>*/}
{/* </TableContainer>*/}
{/*</Card>*/}
</Grid>
{/*----------------------------------------------------------------------------------------------------------------------------------*/}

View File

@ -1027,7 +1027,8 @@ function Overview(props: OverviewProps) {
alignItems="stretch"
spacing={3}
>
<Grid item md={product === 2 ? 12 : 6} xs={12}>
{product !== 2 && (
<Grid item md={6} xs={12}>
<Card
sx={{
overflow: 'visible',
@ -1088,6 +1089,7 @@ function Overview(props: OverviewProps) {
/>
</Card>
</Grid>
)}
{product !== 2 && (
<Grid item md={6} xs={12}>
<Card