Stephen Tse
2024-11-05 74f8c13598b00db30808b6d11fb691b38e313d93
fix: reset z-index instead of inherited unset (#1528)

Co-authored-by: Aaron Pham <contact@aarnphm.xyz>
2 files modified
4 ■■■■ changed files
quartz/components/scripts/graph.inline.ts 2 ●●● patch | view | raw | blame | history
quartz/components/scripts/search.inline.ts 2 ●●● patch | view | raw | blame | history
quartz/components/scripts/graph.inline.ts
@@ -580,7 +580,7 @@
  function hideGlobalGraph() {
    container?.classList.remove("active")
    if (sidebar) {
      sidebar.style.zIndex = "unset"
      sidebar.style.zIndex = ""
    }
  }
quartz/components/scripts/search.inline.ts
@@ -178,7 +178,7 @@
      searchBar.value = "" // clear the input when we dismiss the search
    }
    if (sidebar) {
      sidebar.style.zIndex = "unset"
      sidebar.style.zIndex = ""
    }
    if (results) {
      removeAllChildren(results)