added platform
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ if (toggle && sidebar) {
|
||||
if (sidebar.classList.contains("is-open") && !sidebar.contains(e.target) && !toggle.contains(e.target)) setOpen(false);
|
||||
});
|
||||
const current = sidebar.querySelector('[aria-current="page"]');
|
||||
if (current) current.scrollIntoView({ block: "center" });
|
||||
if (current) current.scrollIntoView({ block: "nearest" });
|
||||
}
|
||||
|
||||
// Highlight the current heading in the table of contents.
|
||||
|
||||
Reference in New Issue
Block a user