navbar search removed where it shouldnt be

This commit is contained in:
Priec
2026-06-25 14:56:19 +02:00
parent d68ed5ce7c
commit c0f4d0c93c
3 changed files with 7 additions and 15 deletions

View File

@@ -108,10 +108,10 @@
</span>
</a>
<!-- in-header search → existing GET /search (q param). Hidden on small
screens (a compact copy lives in the mobile menu panel below), and on
the shop page (whose listing toolbar carries its own search box). -->
{% if not on_shop | default(value=false) %}
<!-- in-header search → existing GET /search (q param). Only on the home
page; elsewhere the shop's own toolbar carries the search box. Hidden
on small screens (a compact copy lives in the mobile menu below). -->
{% if on_home | default(value=false) %}
<form action="/search" method="get" role="search" class="hidden min-w-0 flex-1 md:flex md:max-w-xl">
<div class="flex min-w-0 flex-1 overflow-hidden rounded-radius border border-outline transition focus-within:border-primary dark:border-outline-dark dark:focus-within:border-primary-dark">
<span class="pointer-events-none flex items-center bg-surface-alt pl-3.5 text-on-surface/40 dark:bg-surface-dark-alt dark:text-on-surface-dark/40">{{ ui::icon(name="search", size="size-[18px]") }}</span>
@@ -213,7 +213,7 @@
underline focus), active state via data-nav + markActiveNav() -->
<ul x-show="mobile" x-cloak @click.outside="mobile = false" x-transition
class="absolute inset-x-0 top-full mx-4 mt-2 flex flex-col gap-1 rounded-radius border border-outline bg-surface p-2 shadow-lg md:hidden dark:border-outline-dark dark:bg-surface-dark-alt">
{% if not on_shop | default(value=false) %}
{% if on_home | default(value=false) %}
<li class="mb-1">
<form action="/search" method="get" role="search" class="flex overflow-hidden rounded-radius border border-outline dark:border-outline-dark">
<input type="search" name="q" autocomplete="off"