1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

M #~: Minor fix on numa tab styles (#2102)

This commit is contained in:
Sergio Betanzos 2022-05-30 15:44:26 +02:00 committed by GitHub
parent c028559965
commit 5383d0dfa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,13 +29,24 @@ import { T, CPU_STATUS } from 'client/constants'
*/
const NumaCoreCPU = ({ core, cpus }) => (
<Grid item xs={6}>
<Paper sx={{ pt: '0.3rem', pb: '0.1rem' }}>
<Paper
variant="outlined"
sx={{
color: 'text.primary',
bgcolor:
CPU_STATUS[cpus[core]] === CPU_STATUS['-2']
? 'action.disabled'
: 'action.disabledBackground',
pt: '0.3rem',
pb: '0.1rem',
}}
>
<Box sx={{ flexGrow: 1 }}>
<Typography gutterBottom variant="body2" component="div" align="center">
<Translate word={T.NumaNodeCPUItem} values={core} />
</Typography>
<Typography gutterBottom variant="body2" component="div" align="center">
{CPU_STATUS[String(cpus[core])]}
{CPU_STATUS[cpus[core]]}
</Typography>
</Box>
</Paper>