X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/b321c4ab41ef13dfb43c7e64aee395c4db161872..HEAD:/src/views/run-process-panel/inputs/file-input.tsx diff --git a/src/views/run-process-panel/inputs/file-input.tsx b/src/views/run-process-panel/inputs/file-input.tsx index fd1440c3..6970e2a5 100644 --- a/src/views/run-process-panel/inputs/file-input.tsx +++ b/src/views/run-process-panel/inputs/file-input.tsx @@ -26,7 +26,7 @@ export interface FileInputProps { options?: { showOnlyOwned: boolean, showOnlyWritable: boolean }; } -type DialogContentCssRules = 'root'; +type DialogContentCssRules = 'root' | 'pickerWrapper'; export const FileInput = ({ input, options }: FileInputProps) => {this.renderInput()} - {this.renderDialog()} + ; } @@ -118,43 +118,45 @@ const FileInputComponent = connect()( dialogContentStyles: StyleRulesCallback = ({ spacing }) => ({ root: { - height: `${spacing.unit * 8}vh`, + display: 'flex', + flexDirection: 'column', + }, + pickerWrapper: { + flexBasis: `${spacing.unit * 8}vh`, + flexShrink: 1, + minHeight: 0, }, }); - renderDialog() { - return - Choose a file - - - - - - - - ; - } - - dialogContent = withStyles(this.dialogContentStyles)( + dialog = withStyles(this.dialogContentStyles)( ({ classes }: WithStyles) => -
- -
+ + Choose a file + +
+ +
+
+ + + + +
); - - });