Skip to content

Commit

Permalink
Merge pull request #1439 from Liboq/pikachu-NotionNext
Browse files Browse the repository at this point in the history
fix:sidebar在768-1024 显示不正常
  • Loading branch information
tangly1024 authored Aug 15, 2023
2 parents 54c23a1 + 34eec9f commit ff30891
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/SideBarDrawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const SideBarDrawer = ({ children, isOpen, onOpen, onClose, className }) => {
}
}

return <div id='sidebar-wrapper' className={' block md:hidden top-0 ' + className }>
return <div id='sidebar-wrapper' className={' block lg:hidden top-0 ' + className }>
<div id="sidebar-drawer" className={`${isOpen ? 'ml-0 w-60 visible' : '-ml-60 max-w-side invisible'} bg-white dark:bg-gray-900 shadow-black shadow-lg flex flex-col duration-300 fixed h-full left-0 overflow-y-scroll scroll-hidden top-0 z-30`}>
{children}
</div>
Expand Down
3 changes: 2 additions & 1 deletion themes/hexo/components/SideBarDrawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ const SideBarDrawer = ({ children, isOpen, onOpen, onClose, className }) => {
}
}

return <div id='sidebar-wrapper' className={' block md:hidden top-0 ' + className }>
return <div id='sidebar-wrapper' className={' block lg:hidden top-0 ' + className }>


<div id="sidebar-drawer" className={`${isOpen ? 'mr-0 w-72 visible' : '-mr-72 max-w-side invisible'} bg-gray-50 right-0 top-0 dark:bg-hexo-black-gray shadow-black shadow-lg flex flex-col duration-300 fixed h-full overflow-y-scroll scroll-hidden z-30`}>
{children}
Expand Down

0 comments on commit ff30891

Please sign in to comment.