X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/36b4e36f75ea0035b6b0de6aaaad4edd3231371c..b7de31f185fccd2f9b276c1e89754d288e7facfe:/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 c4db3fb9..02408b06 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'; +export type CssRules = 'root' | 'tab' | 'inputTab' | 'graphTab' | 'descriptionTab' | 'inputsTable'; const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ root: { @@ -33,13 +32,26 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ minWidth: '33%' }, inputTab: { - height: 'calc(100% - 48px - 16px * 2)', - overflowX: 'auto', - overflowY: 'hidden', + overflow: 'auto', + maxHeight: '300px', + marginTop: theme.spacing.unit, '&:last-child': { paddingBottom: theme.spacing.unit / 2, } - } + }, + graphTab: { + overflow: 'auto', + height: '450px', + marginTop: theme.spacing.unit, + }, + descriptionTab: { + overflow: 'auto', + maxHeight: '300px', + marginTop: theme.spacing.unit, + }, + inputsTable: { + tableLayout: 'fixed', + }, }); interface WorkflowDetailsCardDataProps { @@ -60,6 +72,9 @@ export const WorkflowDetailsCard = withStyles(styles)( render() { const { classes, workflow } = this.props; + if (workflow) { + console.log(workflow.definition); + } const { value } = this.state; return
@@ -67,7 +82,7 @@ export const WorkflowDetailsCard = withStyles(styles)( - {value === 0 && + {value === 0 && {workflow ?
{workflow.description}
: ( @@ -84,9 +99,9 @@ export const WorkflowDetailsCard = withStyles(styles)( messages={['Please select a workflow to see its inputs.']} /> }
} - {value === 2 && + {value === 2 && {workflow - ? + ? : @@ -106,7 +121,7 @@ export const WorkflowDetailsCard = withStyles(styles)( } renderInputsTable() { - return + return
Label