Skip to content

Commit

Permalink
feat: update toc style
Browse files Browse the repository at this point in the history
  • Loading branch information
aolyang committed Dec 13, 2024
1 parent 2ad822a commit 469133b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/src/components/TableOfContents.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
const jump2Node = (heading: Heading) => {
const dom = ctx.editor.view.nodeDOM(heading.pos) as HTMLElement | null
dom?.scrollIntoView({ behavior: "smooth" })
dom?.scrollIntoView({ behavior: "smooth", block: "center" })
}
onMount(() => {
Expand Down

0 comments on commit 469133b

Please sign in to comment.