-
- $if(is-index)$
- $else$
-
diff --git a/support/web/css/default.scss b/support/web/css/default.scss index 8753a8d2f..46d362b29 100644 --- a/support/web/css/default.scss +++ b/support/web/css/default.scss @@ -337,6 +337,18 @@ article { flex-direction: row; justify-content: space-between; align-items: center; + margin-bottom: var(--parskip); + + #article-nav-left { + display: flex; + gap: 16px; + + #narrow-search-btn { + background-color: transparent; + border: none; + font-size: 24px; + } + } } > p { diff --git a/support/web/js/prompt.tsx b/support/web/js/prompt.tsx index 89eadbfe5..52d88c6ee 100644 --- a/support/web/js/prompt.tsx +++ b/support/web/js/prompt.tsx @@ -351,10 +351,9 @@ document.addEventListener("DOMContentLoaded", () => { } }); - const searchInputProxy = document.getElementById("search-box-proxy") as HTMLInputElement | null; - if (searchInputProxy) { - searchInputProxy.addEventListener("focus", () => startSearch()); - } + document.getElementById("search-box-proxy")?.addEventListener("focus", () => startSearch()) + document.getElementById("narrow-search-btn")?.addEventListener("click", () => startSearch()) + document.addEventListener("keydown", e => { if (e.key == "k" && isShortcut(e)) { diff --git a/support/web/template.html b/support/web/template.html index b526f3fc8..c4ba46f36 100644 --- a/support/web/template.html +++ b/support/web/template.html @@ -50,6 +50,10 @@ body span.reasoning-step .alternate { display: none; } + + .js-only { + display: none !important; + } @@ -93,7 +97,7 @@