X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/59100a72caedbc8f3c9872de1153bf3d4129122a..a971f4746874e85731cf4b27d850e7a16cd1bdb7:/src/views/workflow-panel/workflow-description-card.tsx diff --git a/src/views/workflow-panel/workflow-description-card.tsx b/src/views/workflow-panel/workflow-description-card.tsx index 70fdb6b3..2294ab5e 100644 --- a/src/views/workflow-panel/workflow-description-card.tsx +++ b/src/views/workflow-panel/workflow-description-card.tsx @@ -14,8 +14,7 @@ import { TableHead, TableCell, TableBody, - TableRow, - Divider + TableRow } from '@material-ui/core'; import { ArvadosTheme } from '~/common/custom-theme'; import { WorkflowIcon } from '~/components/icon/icon'; @@ -23,7 +22,7 @@ import { DataTableDefaultView } from '~/components/data-table-default-view/data- import { WorkflowResource, parseWorkflowDefinition, getWorkflowInputs, getInputLabel, stringifyInputType } from '~/models/workflow'; import { WorkflowGraph } from "~/views/workflow-panel/workflow-graph"; -export type CssRules = 'root' | 'tab' | 'inputTab' | 'descriptionTab' | 'inputsTable'; +export type CssRules = 'root' | 'tab' | 'inputTab' | 'graphTab' | 'graphTabWithChosenWorkflow' | 'descriptionTab' | 'inputsTable'; const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ root: { @@ -35,10 +34,15 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ inputTab: { overflow: 'auto', maxHeight: '300px', + marginTop: theme.spacing.unit + }, + graphTab: { + marginTop: theme.spacing.unit, + }, + graphTabWithChosenWorkflow: { + overflow: 'auto', + height: '450px', marginTop: theme.spacing.unit, - '&:last-child': { - paddingBottom: theme.spacing.unit / 2, - } }, descriptionTab: { overflow: 'auto', @@ -92,7 +96,7 @@ export const WorkflowDetailsCard = withStyles(styles)( messages={['Please select a workflow to see its inputs.']} /> } } - {value === 2 && + {value === 2 && {workflow ? :