侧边菜单隐藏处理

This commit is contained in:
tangly1024
2021-10-15 15:02:10 +08:00
parent 90d8a2e6e0
commit 3841f9fdac
3 changed files with 3 additions and 5 deletions

View File

@@ -8,11 +8,9 @@ const SideBar = ({ tags, currentTag, post }) => {
<div
className='dark:bg-gray-800 border-r dark:border-gray-700 h-full scroll-hidden left-0 duration-500 ease-in-out min-h-screen'>
<div id='sidebar' className='hidden md:block sticky top-20 duration-500'>
<div className='hidden xl:block'>
<div className={post ? 'block' : 'hidden xl:block'}>
<InfoCard />
<hr className='dark:border-gray-700' />
</div>
<div className={post ? 'hidden xl:block' : 'block'}>
<MenuButtonGroup allowCollapse={true} />
</div>