[ARVADOS-WORKBENCH2] created: 1.1.4-99-g83ca43a
Git user
git at public.curoverse.com
Tue Jun 19 09:04:58 EDT 2018
at 83ca43a7dccc99e1036992a7a968b0c8bd1bc9f1 (commit)
commit 83ca43a7dccc99e1036992a7a968b0c8bd1bc9f1
Author: Michal Klobukowski <michal.klobukowski at contractors.roche.com>
Date: Tue Jun 19 15:01:13 2018 +0200
Update workbench styles to handle main content vertical scrolling
Feature #13637
Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski <michal.klobukowski at contractors.roche.com>
diff --git a/src/views/workbench/workbench.tsx b/src/views/workbench/workbench.tsx
index ee4ac7f..f1f0088 100644
--- a/src/views/workbench/workbench.tsx
+++ b/src/views/workbench/workbench.tsx
@@ -23,8 +23,9 @@ import { getTreePath } from '../../store/project/project-reducer';
import DataExplorer from '../data-explorer/data-explorer';
const drawerWidth = 240;
+const appBarHeight = 102;
-type CssRules = 'root' | 'appBar' | 'drawerPaper' | 'content' | 'toolbar';
+type CssRules = 'root' | 'appBar' | 'drawerPaper' | 'content' | 'contentWrapper' | 'toolbar';
const styles: StyleRulesCallback<CssRules> = (theme: Theme) => ({
root: {
@@ -46,12 +47,17 @@ const styles: StyleRulesCallback<CssRules> = (theme: Theme) => ({
position: 'relative',
width: drawerWidth,
},
- content: {
- flexGrow: 1,
+ contentWrapper: {
backgroundColor: theme.palette.background.default,
- padding: theme.spacing.unit * 3,
- height: '100%',
+ display: "flex",
+ flexGrow: 1,
minWidth: 0,
+ paddingTop: appBarHeight
+ },
+ content: {
+ padding: theme.spacing.unit * 3,
+ overflowY: "auto",
+ flexGrow: 1
},
toolbar: theme.mixins.toolbar
});
@@ -174,12 +180,12 @@ class Workbench extends React.Component<WorkbenchProps, WorkbenchState> {
projects={this.props.projects}
toggleProjectTreeItem={this.toggleProjectTreeItem} />
</Drawer>}
- <main className={classes.content}>
- <div className={classes.toolbar} />
- <div className={classes.toolbar} />
- <Switch>
- <Route path="/project/:name" component={DataExplorer} />
- </Switch>
+ <main className={classes.contentWrapper}>
+ <div className={classes.content}>
+ <Switch>
+ <Route path="/project/:name" component={DataExplorer} />
+ </Switch>
+ </div>
</main>
</div>
);
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list