Skip to content

Commit

Permalink
🐛 fix: 修正WEB端锚点滚动后位置仍然看不到的问题 (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuuunagi committed Apr 4, 2023
1 parent 444f75a commit c1d43be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Toc/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const Toc: FC<TocProps> = memo(({ items, activeKey, onChange }) => {
) : (
<div className={styles.container}>
<h4>Table of Contents</h4>
<Anchor items={linkItems} className={styles.anchor} />
<Anchor items={linkItems} className={styles.anchor} targetOffset={theme.headerHeight + 12}/>
</div>
)) || null
);
Expand Down

1 comment on commit c1d43be

@vercel
Copy link

@vercel vercel bot commented on c1d43be Apr 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.