X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/02fa1acae263e5cf28e95a36801cb578be941307..4b8cc1acf54add3e4337b27a7e957a84dc9c07b4:/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..7fcabcbb 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: { @@ -71,11 +70,12 @@ export interface ProcessInformationCardDataProps { onContextMenu: (event: React.MouseEvent) => void; } -type ProcessInformationCardProps = ProcessInformationCardDataProps & WithStyles; +type ProcessInformationCardProps = ProcessInformationCardDataProps & WithStyles; export const ProcessInformationCard = withStyles(styles, { withTheme: true })( ({ classes, process, onContextMenu, theme }: ProcessInformationCardProps) => + {console.log(process)} - onContextMenu(event)}> - - + + onContextMenu(event)}> + + + } title={ @@ -102,9 +104,9 @@ export const ProcessInformationCard = withStyles(styles, { withTheme: true })( } subheader={ - + - {process.containerRequest.description || '(no-description)'} + {getDescription(process)} } /> @@ -124,4 +126,7 @@ export const ProcessInformationCard = withStyles(styles, { withTheme: true })( -); \ No newline at end of file +); + +const getDescription = (process: Process) => + process.containerRequest.description || '(no-description)';