X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/c4621fbe523cc60770f4176141b83083f1f3802a..1534032e710b57106297576edb28e84b652a76f0:/src/views/process-panel/process-information-card.tsx diff --git a/src/views/process-panel/process-information-card.tsx b/src/views/process-panel/process-information-card.tsx index 01bb3ae7..fea94b90 100644 --- a/src/views/process-panel/process-information-card.tsx +++ b/src/views/process-panel/process-information-card.tsx @@ -19,7 +19,7 @@ type CssRules = 'card' | 'iconHeader' | 'label' | 'value' | 'chip' | 'link' | 'c const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ card: { - marginBottom: theme.spacing.unit * 2 + height: '100%' }, iconHeader: { fontSize: '1.875rem', @@ -57,7 +57,6 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ content: { '&:last-child': { paddingBottom: theme.spacing.unit * 2, - paddingTop: '0px' } }, title: { @@ -90,7 +89,9 @@ export const ProcessInformationCard = withStyles(styles, { withTheme: true })( onContextMenu(event)}> - + + + } @@ -102,9 +103,9 @@ export const ProcessInformationCard = withStyles(styles, { withTheme: true })( } subheader={ - + - {process.containerRequest.description || '(no-description)'} + {getDescription(process)} } /> @@ -124,4 +125,7 @@ export const ProcessInformationCard = withStyles(styles, { withTheme: true })( -); \ No newline at end of file +); + +const getDescription = (process: Process) => + process.containerRequest.description || '(no-description)';