21688: Move json out of tableWrapper and add flexbox stretch to collection tab
[arvados.git] / services / workbench2 / src / views / workflow-panel / registered-workflow-panel.tsx
index e943ae63eab2920d74444bfad422688522c6a01b..aa4c1b29d430538d4fdab7fcf574e1e14030f74e 100644 (file)
@@ -137,8 +137,8 @@ export const RegisteredWorkflowPanel = withStyles(styles)(connect(
                 const panelsData: MPVPanelState[] = [
                     { name: "Details" },
                     { name: "Runs" },
-                    { name: "Inputs" },
                     { name: "Outputs" },
+                    { name: "Inputs" },
                     { name: "Definition" },
                 ];
                 return item
@@ -181,26 +181,26 @@ export const RegisteredWorkflowPanel = withStyles(styles)(connect(
                                 </CardContent>
                             </Card>
                         </MPVPanelContent>
-                        <MPVPanelContent forwardProps xs>
+                        <MPVPanelContent forwardProps xs maxHeight="100%">
                             <WorkflowProcessesPanel />
                         </MPVPanelContent>
-                        <MPVPanelContent forwardProps xs data-cy="process-inputs">
+                        <MPVPanelContent forwardProps xs data-cy="process-outputs" maxHeight="100%">
                             <ProcessIOCard
-                                label={ProcessIOCardType.INPUT}
-                                params={inputParams}
+                                label={ProcessIOCardType.OUTPUT}
+                                params={outputParams}
                                 raw={{}}
                                 forceShowParams={true}
                             />
                         </MPVPanelContent>
-                        <MPVPanelContent forwardProps xs data-cy="process-outputs">
+                        <MPVPanelContent forwardProps xs data-cy="process-inputs" maxHeight="100%">
                             <ProcessIOCard
-                                label={ProcessIOCardType.OUTPUT}
-                                params={outputParams}
+                                label={ProcessIOCardType.INPUT}
+                                params={inputParams}
                                 raw={{}}
                                 forceShowParams={true}
                             />
                         </MPVPanelContent>
-                        <MPVPanelContent xs>
+                        <MPVPanelContent xs maxHeight="100%">
                             <Card className={classes.filesCard}>
                                 <CardHeader title="Workflow Definition" />
                                 <ProcessOutputCollectionFiles isWritable={false} currentItemUuid={workflowCollection} />