doc: add a smooth scrolling effect to the sidebar

PR-URL: https://github.com/nodejs/node/pull/59007
Reviewed-By: Aviv Keller <me@aviv.sh>
This commit is contained in:
btea
2025-12-24 11:04:57 +08:00
committed by GitHub
parent 5e677d6e7e
commit ae407c3109

View File

@@ -197,7 +197,7 @@
if (!link) return;
link.scrollIntoView({ block: 'center' });
link.scrollIntoView({ behavior: 'smooth', block: 'center' });
}