Fixed dismissing search bar container messed up left sidebar z-index

This commit is contained in:
Stephen Tse 2024-10-18 04:55:35 -07:00
parent 0d1f15d37c
commit c09447a044
2 changed files with 2 additions and 2 deletions

View File

@ -580,7 +580,7 @@ document.addEventListener("nav", async (e: CustomEventMap["nav"]) => {
function hideGlobalGraph() { function hideGlobalGraph() {
container?.classList.remove("active") container?.classList.remove("active")
if (sidebar) { if (sidebar) {
sidebar.style.zIndex = "unset" sidebar.style.zIndex = ""
} }
} }

View File

@ -178,7 +178,7 @@ document.addEventListener("nav", async (e: CustomEventMap["nav"]) => {
searchBar.value = "" // clear the input when we dismiss the search searchBar.value = "" // clear the input when we dismiss the search
} }
if (sidebar) { if (sidebar) {
sidebar.style.zIndex = "unset" sidebar.style.zIndex = ""
} }
if (results) { if (results) {
removeAllChildren(results) removeAllChildren(results)