aboutsummaryrefslogtreecommitdiff
path: root/modern/src/MainToolbar.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-09-08 10:43:46 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-09-08 10:43:46 +1200
commit353bd397766bb5d780e8f0877f95aa0ad492b579 (patch)
tree3f3ac38c0444ae593c6871f35128195fa89bddae /modern/src/MainToolbar.js
parent4675139fc0dcf2f9f0acc3171af04fba86de0f79 (diff)
downloadtrackermap-web-353bd397766bb5d780e8f0877f95aa0ad492b579.tar.gz
trackermap-web-353bd397766bb5d780e8f0877f95aa0ad492b579.tar.bz2
trackermap-web-353bd397766bb5d780e8f0877f95aa0ad492b579.zip
Fix toolbar elevation
Diffstat (limited to 'modern/src/MainToolbar.js')
-rw-r--r--modern/src/MainToolbar.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/modern/src/MainToolbar.js b/modern/src/MainToolbar.js
index 1ba15509..2e6049db 100644
--- a/modern/src/MainToolbar.js
+++ b/modern/src/MainToolbar.js
@@ -16,10 +16,13 @@ import DashboardIcon from '@material-ui/icons/Dashboard';
import BarChartIcon from '@material-ui/icons/BarChart';
import SettingsIcon from '@material-ui/icons/Settings';
-const styles = {
+const styles = theme => ({
flex: {
flexGrow: 1
},
+ appBar: {
+ zIndex: theme.zIndex.drawer + 1,
+ },
list: {
width: 250
},
@@ -27,7 +30,7 @@ const styles = {
marginLeft: -12,
marginRight: 20,
}
-};
+});
class MainToobar extends Component {
constructor(props) {
@@ -66,7 +69,7 @@ class MainToobar extends Component {
const { classes } = this.props;
return (
<Fragment>
- <AppBar position="static">
+ <AppBar position="static" className={classes.appBar}>
<Toolbar>
<IconButton
className={classes.menuButton}