Emile Bangma
2026-01-08 f346a01296e5bdbd19de38fa69968b42629b883d
feat(explorer): Add active class to current folder in explorer (#2196)

1 files modified
4 ■■■■ changed files
quartz/components/scripts/explorer.inline.ts 4 ●●●● patch | view | raw | blame | history
quartz/components/scripts/explorer.inline.ts
@@ -111,6 +111,10 @@
  const folderPath = node.slug
  folderContainer.dataset.folderpath = folderPath
  if (currentSlug === folderPath) {
    folderContainer.classList.add("active")
  }
  if (opts.folderClickBehavior === "link") {
    // Replace button with link for link behavior
    const button = titleContainer.querySelector(".folder-button") as HTMLElement