fix(graph): make graph non-singleton, proper cleanup, fix radial

This commit is contained in:
Jacky Zhao 2025-03-10 11:39:08 -07:00
parent 8d33608808
commit 23df17233d
5 changed files with 84 additions and 46 deletions

View file

@ -25,7 +25,7 @@ function toggleToc(this: HTMLElement) {
}
function setupToc() {
for (const toc of document.querySelectorAll(".toc")) {
for (const toc of document.getElementsByClassName("toc")) {
const button = toc.querySelector(".toc-header")
const content = toc.querySelector(".toc-content")
if (!button || !content) return