Fix data-explorer layout when search input is hidden
authorMichal Klobukowski <michal.klobukowski@contractors.roche.com>
Tue, 12 Mar 2019 11:49:21 +0000 (12:49 +0100)
committerMichal Klobukowski <michal.klobukowski@contractors.roche.com>
Tue, 12 Mar 2019 11:49:21 +0000 (12:49 +0100)
Feature #14917

Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski <michal.klobukowski@contractors.roche.com>

src/components/data-explorer/data-explorer.tsx

index 2e3e1a3444e50bfa59dfc37c5df8844246fb792b..7c1f9045b4c0f61211c2678e121a8f8694fda8a4 100644 (file)
@@ -89,11 +89,11 @@ export const DataExplorer = withStyles(styles)(
             return <Paper className={classes.root} {...paperProps} key={paperKey}>
                 {(!hideColumnSelector || !hideSearchInput) && <Toolbar className={classes.toolbar}>
                     <Grid container justify="space-between" wrap="nowrap" alignItems="center">
-                        {!hideSearchInput && <div className={classes.searchBox}>
-                            <SearchInput
+                        <div className={classes.searchBox}>
+                            {!hideSearchInput && <SearchInput
                                 value={searchValue}
-                                onSearch={onSearch} />
-                        </div>}
+                                onSearch={onSearch} />}
+                        </div>
                         {actions}
                         {!hideColumnSelector && <ColumnSelector
                             columns={columns}
@@ -110,8 +110,8 @@ export const DataExplorer = withStyles(styles)(
                     onSortToggle={onSortToggle}
                     extractKey={extractKey}
                     working={working}
-                    defaultView={dataTableDefaultView} 
-                    currentItemUuid={currentItemUuid} 
+                    defaultView={dataTableDefaultView}
+                    currentItemUuid={currentItemUuid}
                     currentRoute={paperKey} />
                 <Toolbar className={classes.footer}>
                     <Grid container justify="flex-end">
@@ -126,7 +126,7 @@ export const DataExplorer = withStyles(styles)(
                                 variant="text"
                                 size="medium"
                                 onClick={this.loadMore}
-                                >Load more</Button>}
+                            >Load more</Button>}
                     </Grid>
                 </Toolbar>
             </Paper>;