reading resources

This commit is contained in:
tangly1024
2023-06-04 21:37:45 +08:00
parent b492515eb9
commit 8ace4b2f64
5 changed files with 57 additions and 33 deletions

View File

@@ -29,11 +29,11 @@ const SideBarDrawer = ({ children, isOpen, onOpen, onClose, className }) => {
const sideBarDrawerBackground = window.document.getElementById('sidebar-drawer-background')
if (showStatus) {
sideBarDrawer.classList.replace('-ml-60', 'ml-0')
sideBarDrawerBackground.classList.replace('hidden', 'block')
sideBarDrawer?.classList.replace('-ml-60', 'ml-0')
sideBarDrawerBackground?.classList.replace('hidden', 'block')
} else {
sideBarDrawer.classList.replace('ml-0', '-ml-60')
sideBarDrawerBackground.classList.replace('block', 'hidden')
sideBarDrawer?.classList.replace('ml-0', '-ml-60')
sideBarDrawerBackground?.classList.replace('block', 'hidden')
}
}