Remove desktop header search from app topbars.
Deploy Ladill Queue / deploy (push) Successful in 1m0s
Deploy Ladill Queue / deploy (push) Successful in 1m0s
Drop the lg+ topbar search field; mobile search entry points are unchanged.
This commit is contained in:
@@ -12,17 +12,6 @@
|
|||||||
{{-- Mobile: app name --}}
|
{{-- Mobile: app name --}}
|
||||||
@include('partials.mobile-topbar-title')
|
@include('partials.mobile-topbar-title')
|
||||||
|
|
||||||
{{-- Desktop: search (tickets) --}}
|
|
||||||
<form method="GET" action="{{ route('qms.tickets.index') }}"
|
|
||||||
class="relative hidden w-full max-w-md lg:block"
|
|
||||||
x-data
|
|
||||||
@keydown.window="if ($event.key === '/' && !['INPUT','TEXTAREA','SELECT'].includes($event.target.tagName)) { $event.preventDefault(); $refs.search.focus(); }">
|
|
||||||
<svg class="pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-400" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"/></svg>
|
|
||||||
<input x-ref="search" type="search" name="q" value="{{ request('q') }}"
|
|
||||||
placeholder="Search tickets…"
|
|
||||||
class="w-full rounded-xl border border-slate-200 bg-slate-50 py-2 pl-9 pr-10 text-sm text-slate-700 placeholder-slate-400 transition focus:border-indigo-300 focus:bg-white focus:ring-2 focus:ring-indigo-100 focus:outline-none">
|
|
||||||
<kbd class="pointer-events-none absolute right-3 top-1/2 hidden -translate-y-1/2 rounded-md border border-slate-200 bg-white px-1.5 py-0.5 text-[10px] font-medium text-slate-400 sm:inline-block">/</kbd>
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex items-center gap-3">
|
<div class="flex items-center gap-3">
|
||||||
|
|||||||
Reference in New Issue
Block a user