mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-31 15:10:11 +00:00
组件调整、排版调整、新增右侧目录抽屉
This commit is contained in:
@@ -51,10 +51,7 @@ const TocBar = ({ toc }) => {
|
||||
}, throttleMs))
|
||||
|
||||
return <div className='bg-white dark:bg-gray-800 pb-10 min-h-screen'>
|
||||
<div className='w-52 border-t dark:border-gray-600 border-b text-2xl bg-gray-100 font-bold text-black dark:bg-black dark:text-white py-6 px-6'>
|
||||
文章目录
|
||||
</div>
|
||||
<nav className='text-gray-500 dark:text-gray-400 underline overflow-y-auto overflow-x-auto'>
|
||||
<nav className='text-gray-500 dark:text-gray-400 underline overflow-auto scroll-hidden py-2'>
|
||||
{toc.map((tocItem) => {
|
||||
const id = uuidToId(tocItem.id)
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user