From: Michal Klobukowski Date: Sun, 21 Oct 2018 21:22:56 +0000 (+0200) Subject: Fix run process view inputs tab layout X-Git-Tag: 1.3.0~53^2~2 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/6a1b2741a1ac383be09971a957553d2d15de6d5b?ds=sidebyside Fix run process view inputs tab layout Feature #14361 Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski --- diff --git a/src/views/workflow-panel/workflow-description-card.tsx b/src/views/workflow-panel/workflow-description-card.tsx index c4db3fb9..70fdb6b3 100644 --- a/src/views/workflow-panel/workflow-description-card.tsx +++ b/src/views/workflow-panel/workflow-description-card.tsx @@ -23,7 +23,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 +33,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 +75,7 @@ export const WorkflowDetailsCard = withStyles(styles)( - {value === 0 && + {value === 0 && {workflow ?
{workflow.description}
: ( @@ -86,7 +94,7 @@ export const WorkflowDetailsCard = withStyles(styles)(
} {value === 2 && {workflow - ? + ? : @@ -106,7 +114,7 @@ export const WorkflowDetailsCard = withStyles(styles)( } renderInputsTable() { - return + return
Label