File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ class Layout extends React.PureComponent {
71
71
// use classes insted of overrideClasses as material-ui
72
72
const classes = { ...defaultClasses , ...overrideClasses } ;
73
73
74
- const mainShift = drawerOpen && ( drawerType === 'permanent' || drawerType === 'persistent' ) ;
74
+ const mainShift = drawerType === 'permanent' || ( drawerOpen && drawerType === 'persistent' ) ;
75
75
const mainClassnames = classNames (
76
76
classes . main ,
77
77
{ [ `${ classes . mainFixedAppBar } ` ] : appBarPosition === 'fixed' } ,
@@ -80,7 +80,7 @@ class Layout extends React.PureComponent {
80
80
) ;
81
81
82
82
const appBarShift =
83
- drawerOpen && ! drawerUnder && ( drawerType === 'permanent' || drawerType === 'persistent ' ) ;
83
+ ! drawerUnder && ( ( drawerOpen && drawerType === 'persistent' ) || drawerType === 'permanent ' ) ;
84
84
85
85
const appBarClassnames = classNames ( classes . appBar , {
86
86
[ `${ classes . appBarShift } ` ] : appBarShift ,
You can’t perform that action at this time.
0 commit comments