diff --git a/src/lib/components/publications/TableOfContents.svelte b/src/lib/components/publications/TableOfContents.svelte index 8003fc5..117769a 100644 --- a/src/lib/components/publications/TableOfContents.svelte +++ b/src/lib/components/publications/TableOfContents.svelte @@ -157,6 +157,24 @@ + + {#if depth === 2} + { + e.preventDefault(); + window.scrollTo({ + top: 0, + behavior: 'smooth', + }); + onClose?.(); + }} + > + + + {/if} {#if depth === 2} {@const rootEntry = toc.getRootEntry()}