X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/215d0b7a7e1f69765c5f2a1139e52d8c427066eb..e01c4dd1a518a03e948fffcb5f5d3c33534cbca2:/src/views/process-panel/process-resource-card.tsx diff --git a/src/views/process-panel/process-resource-card.tsx b/src/views/process-panel/process-resource-card.tsx index c76838fc..98e96edd 100644 --- a/src/views/process-panel/process-resource-card.tsx +++ b/src/views/process-panel/process-resource-card.tsx @@ -20,6 +20,7 @@ import { ArvadosTheme } from 'common/custom-theme'; import { CloseIcon, MaximizeIcon, + MemoryIcon, UnMaximizeIcon, ProcessIcon } from 'components/icon/icon'; @@ -55,16 +56,16 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ }, iconHeader: { fontSize: '1.875rem', - color: theme.customs.colors.green700, + color: theme.customs.colors.greyL, }, content: { paddingTop: "0px", - maxHeight: `calc(100% - ${theme.spacing.unit * 4.5}px)`, + maxHeight: `calc(100% - ${theme.spacing.unit * 7.5}px)`, overflow: "auto" }, sectionH3: { margin: "0.5em", - color: theme.customs.colors.purple, + color: theme.customs.colors.greyD, fontSize: "0.8125rem", textTransform: "uppercase", } @@ -94,7 +95,7 @@ export const ProcessResourceCard = withStyles(styles)(connect()( content: classes.title, avatar: classes.avatar, }} - avatar={} + avatar={} title={ Resources @@ -131,6 +132,20 @@ export const ProcessResourceCard = withStyles(styles)(connect()( + {process.container?.runtimeConstraints.cuda && + process.container?.runtimeConstraints.cuda.device_count > 0 ? + <> + + + + + + + + + + : null} + {process.container?.runtimeConstraints.keep_cache_ram && process.container?.runtimeConstraints.keep_cache_ram > 0 ? @@ -147,19 +162,6 @@ export const ProcessResourceCard = withStyles(styles)(connect()( : null} - {process.container?.runtimeConstraints.cuda && - process.container?.runtimeConstraints.cuda.device_count > 0 ? - <> - - - - - - - - - - : null} @@ -188,35 +190,31 @@ export const ProcessResourceCard = withStyles(styles)(connect()( - + - - - - - {nodeInfo.CUDA.DeviceCount > 0 && + {nodeInfo.CUDA && nodeInfo.CUDA.DeviceCount > 0 && <> - + - + - + }