File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,10 @@ class Layout extends React.PureComponent {
159
159
[ `${ classes . drawerPaperUnder } ` ] : ! smallScreen && rightDrawerUnder ,
160
160
[ `${ classes . rightDrawerDockedFix } ` ] : isDocked ( rightDrawerType ) , // FIXME remove once material-ui drawer style is fixed
161
161
} ) ;
162
+ const drawerHeaderClassnames = classNames ( {
163
+ [ `${ classes . drawerHeader } ` ] : ! usingTwoRowAppBar ,
164
+ [ `${ classes . drawerHeaderTwoRowAppBar } ` ] : usingTwoRowAppBar ,
165
+ } )
162
166
163
167
return (
164
168
< div className = { classes . layout } >
@@ -180,7 +184,7 @@ class Layout extends React.PureComponent {
180
184
{ ...leftDrawerProps }
181
185
>
182
186
{ ! smallScreen && leftDrawerUnder ? (
183
- < div className = { classes . drawerHeader } />
187
+ < div className = { drawerHeaderClassnames } />
184
188
) : null }
185
189
{ leftDrawerContent }
186
190
</ Drawer >
@@ -195,7 +199,7 @@ class Layout extends React.PureComponent {
195
199
{ ...rightDrawerProps }
196
200
>
197
201
{ ! smallScreen && rightDrawerUnder ? (
198
- < div className = { classes . drawerHeader } />
202
+ < div className = { drawerHeaderClassnames } />
199
203
) : null }
200
204
{ rightDrawerContent }
201
205
</ Drawer >
Original file line number Diff line number Diff line change @@ -54,6 +54,10 @@ const styles = theme => ({
54
54
flex : 1 ,
55
55
height : `calc(100vh - ${ theme . mixins . toolbar . minHeight * 2 } px)` ,
56
56
} ,
57
+ drawerHeader : theme . mixins . toolbar ,
58
+ drawerHeaderTwoRowAppBar : {
59
+ minHeight : `${ theme . mixins . toolbar . minHeight * 2 } px` ,
60
+ } ,
57
61
[ theme . breakpoints . up ( 'sm' ) ] : {
58
62
mainFixedAppBar : {
59
63
marginTop : `${ theme . mixins . toolbar [ theme . breakpoints . up ( 'sm' ) ]
@@ -71,6 +75,10 @@ const styles = theme => ({
71
75
height : `calc(100vh - ${ theme . mixins . toolbar [ theme . breakpoints . up ( 'sm' ) ]
72
76
. minHeight * 2 } px)`,
73
77
} ,
78
+ drawerHeaderTwoRowAppBar : {
79
+ minHeight : `${ theme . mixins . toolbar [ theme . breakpoints . up ( 'sm' ) ]
80
+ . minHeight * 2 } px`,
81
+ } ,
74
82
} ,
75
83
mainStickyFooter : {
76
84
flex : 1 ,
@@ -100,11 +108,6 @@ const styles = theme => ({
100
108
drawerPaperUnder : {
101
109
zIndex : '1000' ,
102
110
} ,
103
- drawerHeader : theme . mixins . toolbar ,
104
- rightDrawerDockedFix : {
105
- borderLeft : `1px solid ${ theme . palette . text . divider } ` ,
106
- borderRight : 'none' ,
107
- } ,
108
111
} ) ;
109
112
110
113
export default styles ;
You can’t perform that action at this time.
0 commit comments