File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,11 @@ class Layout extends React.PureComponent {
85
85
const appBarClassnames = classNames ( classes . appBar , {
86
86
[ `${ classes . appBarShift } ` ] : appBarShift ,
87
87
} ) ;
88
+
89
+ const drawerPaperClassnames = classNames ( classes . drawerPaper , {
90
+ [ `${ classes . drawerPaperUnder } ` ] : drawerUnder ,
91
+ } ) ;
92
+
88
93
return (
89
94
< div className = { classes . layout } >
90
95
< AppBar
@@ -100,9 +105,10 @@ class Layout extends React.PureComponent {
100
105
open = { drawerOpen }
101
106
onRequestClose = { this . handleDrawerClose }
102
107
type = { drawerType }
103
- classes = { { paper : classes . drawerPaper } }
108
+ classes = { { paper : drawerPaperClassnames } }
104
109
{ ...drawerProps }
105
110
>
111
+ { drawerUnder ? < div className = { classes . drawerHeader } /> : null }
106
112
{ drawerContent }
107
113
</ Drawer >
108
114
) : null }
Original file line number Diff line number Diff line change @@ -43,14 +43,19 @@ const styles = theme => ({
43
43
duration : theme . transitions . duration . enteringScreen ,
44
44
} ) ,
45
45
} ,
46
- '@media (max-width: 599px)' : { // use mixim
46
+ '@media (max-width: 599px)' : {
47
+ // use mixim
47
48
mainFixedAppBar : {
48
49
marginTop : '56px' ,
49
50
} ,
50
51
} ,
51
52
drawerPaper : {
52
53
width : drawerWidth ,
53
54
} ,
55
+ drawerPaperUnder : {
56
+ zIndex : '1000' ,
57
+ } ,
58
+ drawerHeader : theme . mixins . toolbar ,
54
59
} ) ;
55
60
56
61
export default styles ;
You can’t perform that action at this time.
0 commit comments