From edfa42a162cc65804c6b5853bc1cbe2de499c09c Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 6 Sep 2018 16:40:14 +1200 Subject: Add drawer for devices --- modern/src/MainPage.js | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) (limited to 'modern/src/MainPage.js') diff --git a/modern/src/MainPage.js b/modern/src/MainPage.js index 6db458e..287a21f 100644 --- a/modern/src/MainPage.js +++ b/modern/src/MainPage.js @@ -2,6 +2,7 @@ import React, { Component } from 'react'; import ContainerDimensions from 'react-container-dimensions'; import MainToobar from './MainToolbar'; import MainMap from './MainMap'; +import Drawer from '@material-ui/core/Drawer'; import withStyles from '@material-ui/core/styles/withStyles'; const styles = theme => ({ @@ -10,6 +11,23 @@ const styles = theme => ({ display: "flex", flexDirection: "column" }, + content: { + flexGrow: 1, + display: "flex", + flexDirection: "row", + [theme.breakpoints.down('xs')]: { + flexDirection: "column-reverse" + } + }, + drawerPaper: { + position: 'relative', + [theme.breakpoints.up('sm')]: { + width: 350 + }, + [theme.breakpoints.down('xs')]: { + height: 250 + } + }, mapContainer: { flexGrow: 1 } @@ -46,10 +64,16 @@ class MainPage extends Component { return (
-
- - - +
+ + +
+ + + +
); -- cgit v1.2.3