目录样式微调
This commit is contained in:
tangly1024
2021-11-29 14:48:03 +08:00
parent 917d3f2e63
commit 99d98566b7
8 changed files with 49 additions and 31 deletions

View File

@@ -50,11 +50,7 @@ const Toc = ({ toc }) => {
setActiveSection(currentSectionId)
}, throttleMs))
return <div className='dark:bg-gray-800 min-h-screen'>
<div
className='dark:border-gray-600 border-b text-2xl bg-white font-bold text-black dark:bg-gray-900 dark:text-white py-6 px-6'>
文章目录
</div>
return <div className='dark:bg-gray-800 bg-white'>
<nav className='text-gray-500 dark:text-gray-400 underline overflow-y-auto scroll-hidden p-2'>
{toc.map((tocItem) => {
const id = uuidToId(tocItem.id)