mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-01 15:10:14 +00:00
fix gitbook & mermaid
This commit is contained in:
@@ -50,7 +50,6 @@ const Catalog = ({ post }) => {
|
||||
setActiveSection(currentSectionId)
|
||||
const index = tocIds.indexOf(currentSectionId) || 0
|
||||
if (isBrowser() && tocIds?.length > 0) {
|
||||
console.log(28 * index, index, currentSectionId)
|
||||
for (const tocWrapper of document?.getElementsByClassName('toc-wrapper')) {
|
||||
tocWrapper?.scrollTo({ top: 28 * index, behavior: 'smooth' })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user