抽屉动画 (#70)

* Fix: drawer open and closed animation

* fixs #https://github.com/cloudreve/frontend/pull/70
This commit is contained in:
Aruelius.L 2021-04-29 20:59:11 +08:00 committed by GitHub
parent 997b73312a
commit 79499830a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -186,6 +186,9 @@ const styles = (theme) => ({
drawerPaper: {
width: drawerWidthMobile,
},
drawerPaperDesktop: {
width: drawerWidth,
},
upDrawer: {
overflowX: "hidden",
},
@ -914,10 +917,7 @@ class NavbarCompoment extends Component {
<Hidden xsDown implementation="css">
<Drawer
classes={{
paper: classNames({
[classes.drawerOpen]: this.props.desktopOpen,
[classes.drawerClose]: !this.props.desktopOpen,
}),
paper: classes.drawerPaperDesktop,
}}
className={classNames(classes.drawer, {
[classes.drawerOpen]: this.props.desktopOpen,