X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b6ac7fe88d347582d39fffa002e300af222c578f..215d0b7a7e1f69765c5f2a1139e52d8c427066eb:/src/views/run-process-panel/inputs/file-array-input.tsx diff --git a/src/views/run-process-panel/inputs/file-array-input.tsx b/src/views/run-process-panel/inputs/file-array-input.tsx index ddb558b9e5..0be8f19fed 100644 --- a/src/views/run-process-panel/inputs/file-array-input.tsx +++ b/src/views/run-process-panel/inputs/file-array-input.tsx @@ -16,7 +16,7 @@ import { GenericInputProps, GenericInput } from './generic-input'; import { ProjectsTreePicker } from 'views-components/projects-tree-picker/projects-tree-picker'; import { connect, DispatchProp } from 'react-redux'; import { initProjectsTreePicker, getSelectedNodes, treePickerActions, getProjectsTreePickerIds } from 'store/tree-picker/tree-picker-actions'; -import { ProjectsTreePickerItem } from 'views-components/projects-tree-picker/generic-projects-tree-picker'; +import { ProjectsTreePickerItem } from 'store/tree-picker/tree-picker-middleware'; import { CollectionFile, CollectionFileType } from 'models/collection-file'; import { createSelector, createStructuredSelector } from 'reselect'; import { ChipsInput } from 'components/chips-input/chips-input'; @@ -212,31 +212,17 @@ const FileArrayInputComponent = connect(mapStateToProps)( onKeyPress={!this.props.commandInput.disabled ? this.openDialog : undefined} onBlur={this.props.input.onBlur} /> - dialog = () => - - Choose files - - - - - - - - - dialogContentStyles: StyleRulesCallback = ({ spacing }) => ({ root: { display: 'flex', flexDirection: 'column', - height: `${spacing.unit * 8}vh`, + }, + pickerWrapper: { + display: 'flex', + flexDirection: 'column', + flexBasis: `${spacing.unit * 8}vh`, + flexShrink: 1, + minHeight: 0, }, tree: { flex: 3, @@ -253,9 +239,32 @@ const FileArrayInputComponent = connect(mapStateToProps)( }, }) + + dialog = withStyles(this.dialogContentStyles)( + ({ classes }: WithStyles) => + + Choose files + + + + + + + + + ); + dialogContent = withStyles(this.dialogContentStyles)( ({ classes }: WithStyles) => -
+