From 11b8bad5597fcf3ec7aebdea238a53f6fbb8ac09 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Thu, 11 Jan 2024 13:18:57 -0500 Subject: [PATCH] Fix search clicks and mastheads --- src/components/Search.tsx | 4 ++-- src/pkgx.dev.tsx | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/Search.tsx b/src/components/Search.tsx index 91062403..ff18e8df 100644 --- a/src/components/Search.tsx +++ b/src/components/Search.tsx @@ -53,9 +53,9 @@ export default function Search() { /> {/* NOTE always open so fade away works - FIXME instead set to isopen otherwise some of the UI is occluded and unclickable after fade away + FIXME this occludes content :/ */} - + {has_text && } diff --git a/src/pkgx.dev.tsx b/src/pkgx.dev.tsx index ff378085..3c256bff 100644 --- a/src/pkgx.dev.tsx +++ b/src/pkgx.dev.tsx @@ -55,8 +55,10 @@ function MyMasthead() { + console.log(/\/pkgs\/.+/.test(pathname), pathname) + return - {/\/pkgs\/.+/.test(pathname) || stuff} - {(pathname.startsWith('/pkgs') || !isxs) && search} + {pathname.startsWith('/pkgs') && isxs ? null : stuff} + {pathname.startsWith('/pkgs') || !isxs ? search : undefined} }