From: Artur Janicki Date: Tue, 3 Jul 2018 12:40:16 +0000 (+0200) Subject: #13704: modify details panel X-Git-Tag: 1.2.0~60^2~7 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/32a3dc29d8cb3f1d7229f8801f173f233a3fdcef #13704: modify details panel Feature #13704 Arvados-DCO-1.1-Signed-off-by: Janicki Artur --- diff --git a/src/views-components/details-panel/details-panel.tsx b/src/views-components/details-panel/details-panel.tsx index 16c1f92f..4b55d3f5 100644 --- a/src/views-components/details-panel/details-panel.tsx +++ b/src/views-components/details-panel/details-panel.tsx @@ -10,6 +10,8 @@ import { StyleRulesCallback, WithStyles, withStyles, Theme } from "@material-ui/ import Tabs from '@material-ui/core/Tabs'; import Tab from '@material-ui/core/Tab'; import Typography from '@material-ui/core/Typography'; +import * as classnames from "classnames"; +import Grid from '@material-ui/core/Grid'; function TabContainer(props: any) { return ( @@ -26,28 +28,35 @@ export interface DetailsPanelProps { class DetailsPanel extends React.Component, {}> { state = { - value: 0, + tabsValue: 0, }; handleChange = (event: any, value: boolean) => { - this.setState({ value }); + this.setState({ tabsValue: value }); } render() { const { classes, toggleDrawer, isOpened } = this.props; - const { value } = this.state; + const { tabsValue } = this.state; return (
toggleDrawer(false)} classes={{ paper: classes.drawerPaper }}> -

Tutorial pipeline

- toggleDrawer(false)}> - - - + {/* className={classnames([classes.root, { [classes.active]: isActive }])} */} + + + + Tutorial pipeline + + toggleDrawer(false)}> + + + + + - {value === 0 && - Item One + {tabsValue === 0 && + + +

Type

+

Size

+

Location

+

Owner

+
+ +

Process

+

---

+

Projects

+

me

+
+
} - {value === 1 && - Item Two + {tabsValue === 1 && + + +

Type

+

Size

+

Location

+

Owner

+
+ +

Process

+

---

+

Projects

+

me

+
+
}
@@ -70,9 +105,11 @@ class DetailsPanel extends React.Component = (theme: Theme) => ({ container: { position: 'relative', @@ -82,28 +119,30 @@ const styles: StyleRulesCallback = (theme: Theme) => ({ position: 'relative', width: drawerWidth }, - title: { - padding: '10px 0px', - fontSize: '20px', - fontWeight: 400, - fontStyle: 'normal' + headerContainer: { + color: '#A1A1A1', + margin: `${theme.spacing.unit}px 0` }, - tabsRoot: { - borderBottom: '1px solid transparent', + headerTitle: { + marginBottom: 0 }, tabsIndicator: { - backgroundColor: 'rgb(106, 27, 154)', + backgroundColor: purple }, tabRoot: { - fontSize: '13px', - fontWeight: 400, color: '#333333', '&$tabSelected': { fontWeight: 700, - color: 'rgb(106, 27, 154)' - }, + color: purple + } }, - tabSelected: {} + tabContainer: { + padding: theme.spacing.unit * 3 + }, + tabSelected: {}, + gridLabel: { + color: '#999999', + } }); export default withStyles(styles)(DetailsPanel); \ No newline at end of file