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:
parent
c028559965
commit
5383d0dfa7
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user