Skip to content

Commit 15c90ef

Browse files
committed
fixed the css transitions for main
1 parent bfbe8be commit 15c90ef

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/components/Layout/styles.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const styles = theme => ({
3535
main: {
3636
paddingTop: '0px',
3737
display: 'flex',
38-
transition: theme.transitions.create(['margin'], {
38+
transition: theme.transitions.create(['margin', 'width'], {
3939
easing: theme.transitions.easing.sharp,
4040
duration: theme.transitions.duration.leavingScreen,
4141
}),
@@ -56,23 +56,27 @@ const styles = theme => ({
5656
},
5757
[theme.breakpoints.up('sm')]: {
5858
mainFixedAppBar: {
59-
marginTop: `${theme.mixins.toolbar[theme.breakpoints.up('sm')].minHeight}px`,
59+
marginTop: `${theme.mixins.toolbar[theme.breakpoints.up('sm')]
60+
.minHeight}px`,
6061
},
6162
mainFixedTwoRowAppBar: {
62-
marginTop: `${theme.mixins.toolbar[theme.breakpoints.up('sm')].minHeight * 2}px`,
63+
marginTop: `${theme.mixins.toolbar[theme.breakpoints.up('sm')].minHeight *
64+
2}px`,
6365
},
6466
mainGrow: {
65-
height: `calc(100vh - ${theme.mixins.toolbar[theme.breakpoints.up('sm')].minHeight}px)`,
67+
height: `calc(100vh - ${theme.mixins.toolbar[theme.breakpoints.up('sm')]
68+
.minHeight}px)`,
6669
},
6770
mainGrowTwoRowAppBar: {
68-
height: `calc(100vh - ${theme.mixins.toolbar[theme.breakpoints.up('sm')].minHeight * 2}px)`,
71+
height: `calc(100vh - ${theme.mixins.toolbar[theme.breakpoints.up('sm')]
72+
.minHeight * 2}px)`,
6973
},
7074
},
7175
mainStickyFooter: {
7276
flex: 1,
7377
},
7478
mainShift: {
75-
transition: theme.transitions.create(['margin'], {
79+
transition: theme.transitions.create(['margin', 'width'], {
7680
easing: theme.transitions.easing.easeOut,
7781
duration: theme.transitions.duration.enteringScreen,
7882
}),

0 commit comments

Comments
 (0)