X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/b321c4ab41ef13dfb43c7e64aee395c4db161872..215d0b7a7e1f69765c5f2a1139e52d8c427066eb:/src/views/run-process-panel/inputs/project-input.tsx diff --git a/src/views/run-process-panel/inputs/project-input.tsx b/src/views/run-process-panel/inputs/project-input.tsx index 761cd1ed..ef6d08f4 100644 --- a/src/views/run-process-panel/inputs/project-input.tsx +++ b/src/views/run-process-panel/inputs/project-input.tsx @@ -28,7 +28,7 @@ export interface ProjectInputProps { options?: { showOnlyOwned: boolean, showOnlyWritable: boolean }; } -type DialogContentCssRules = 'root'; +type DialogContentCssRules = 'root' | 'pickerWrapper'; export const ProjectInput = ({ input, options }: ProjectInputProps) => {this.renderInput()} - {this.renderDialog()} + ; } @@ -114,40 +114,42 @@ export const ProjectInputComponent = connect(mapStateToProps)( 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 this.state.open ? - Choose a project - - - - - - - - : null; - } - - dialogContent = withStyles(this.dialogContentStyles)( + dialog = withStyles(this.dialogContentStyles)( ({ classes }: WithStyles) => -
- -
+ this.state.open ? + Choose a project + +
+ +
+
+ + + + +
: null ); });