mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-21 15:09:43 +00:00
feature:
微调
This commit is contained in:
@@ -51,14 +51,14 @@ const Toc = ({ toc }) => {
|
||||
}, throttleMs))
|
||||
|
||||
return <>
|
||||
<nav className=' dark:text-gray-100 glassmorphism overflow-y-auto scroll-hidden p-6'>
|
||||
<nav className=' dark:text-gray-100 bg-white dark:bg-gray-800 overflow-y-auto scroll-hidden p-6'>
|
||||
{toc.map((tocItem) => {
|
||||
const id = uuidToId(tocItem.id)
|
||||
return (
|
||||
<a
|
||||
key={id}
|
||||
href={`#${id}`}
|
||||
className={`notion-table-of-contents-item px-5 duration-300 transform font-light
|
||||
className={`notion-table-of-contents-item duration-300 transform font-light
|
||||
notion-table-of-contents-item-indent-level-${tocItem.indentLevel}
|
||||
${activeSection === id && ' font-bold text-blue-400 dark:text-white'}`}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user