X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/36b4e36f75ea0035b6b0de6aaaad4edd3231371c..01a728d112f5728b9552c7e63f074487a4d056f0:/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..b4b9f20a 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' | 'descriptionTab' | 'inputsTable'; const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ root: { @@ -33,13 +32,21 @@ 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, } - } + }, + descriptionTab: { + overflow: 'auto', + maxHeight: '300px', + marginTop: theme.spacing.unit, + }, + inputsTable: { + tableLayout: 'fixed', + }, }); interface WorkflowDetailsCardDataProps { @@ -67,7 +74,7 @@ export const WorkflowDetailsCard = withStyles(styles)( - {value === 0 && + {value === 0 && {workflow ?
{workflow.description}
: ( @@ -86,7 +93,7 @@ export const WorkflowDetailsCard = withStyles(styles)(
} {value === 2 && {workflow - ? + ? : @@ -106,7 +113,7 @@ export const WorkflowDetailsCard = withStyles(styles)( } renderInputsTable() { - return + return
Label