Skip to content

Commit 97d6f5a

Browse files
author
Tuyen Vu Duc
committed
fix scroll not display full on desktop screen
1 parent 3f0a750 commit 97d6f5a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/components/Sidebar/SidebarView.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,13 @@ const SidebarView = ({ classes, theme, toggleSidebar, isSidebarOpened, isPermane
5757
[classes.drawerClose]: !isSidebarOpened,
5858
})}
5959
classes={{
60-
paper: classNames({
60+
paper: classNames(classes.drawer, {
6161
[classes.drawerOpen]: isSidebarOpened,
6262
[classes.drawerClose]: !isSidebarOpened,
6363
}),
6464
}}
6565
open={isSidebarOpened}
6666
>
67-
<div className={classes.toolbar} />
6867
<div className={classes.mobileBackButton}>
6968
<IconButton
7069
onClick={toggleSidebar}
@@ -93,6 +92,10 @@ const styles = theme => ({
9392
width: drawerWidth,
9493
flexShrink: 0,
9594
whiteSpace: 'nowrap',
95+
top: theme.spacing.unit * 8,
96+
[theme.breakpoints.down("sm")]: {
97+
top: 0,
98+
}
9699
},
97100
drawerOpen: {
98101
width: drawerWidth,
@@ -122,9 +125,6 @@ const styles = theme => ({
122125
flexGrow: 1,
123126
padding: theme.spacing.unit * 3,
124127
},
125-
sidebarList: {
126-
marginTop: theme.spacing.unit * 6,
127-
},
128128
mobileBackButton: {
129129
marginTop: theme.spacing.unit * .5,
130130
marginLeft: theme.spacing.unit * 3,

0 commit comments

Comments
 (0)