toc 目录

This commit is contained in:
tangly1024.com
2023-02-08 17:04:59 +08:00
parent d10bcbe5c3
commit 74c88c748c
2 changed files with 4 additions and 3 deletions

View File

@@ -18,10 +18,9 @@ const TocDrawer = ({ post, cRef }) => {
{/* 侧边菜单 */}
<div
className={(tocVisible ? 'animate__slideInRight ' : ' -mr-72 animate__slideOutRight') +
' shadow-card h-56 overflow-y-hidden' +
' w-60 duration-200 fixed right-1 bottom-16 rounded py-2 bg-white dark:bg-gray-600'}>
' overflow-y-hidden shadow-card w-60 duration-200 fixed right-1 bottom-16 rounded py-2 bg-white dark:bg-gray-600'}>
{post && <>
<div className='dark:text-gray-400 text-gray-600'>
<div className='dark:text-gray-400 text-gray-600 h-56'>
<Catalog toc={post.toc}/>
</div>
</>}