feat: add timeout and abort handling to command palette search

This commit is contained in:
2026-05-17 20:38:08 +02:00
parent 443292f329
commit 9ba327d5c5
3 changed files with 47 additions and 5 deletions

View File

@@ -3,7 +3,7 @@
{{$selectedCount := len $selectedGenreIDs}}
<div class="flex flex-wrap items-center gap-3" hx-boost="true" hx-target="#browse-content" hx-swap="outerHTML" hx-push-url="true">
<div class="min-w-50 flex-1">
<form action="/browse" method="GET" id="browse-search-form" hx-get="/browse" hx-trigger="submit, keyup changed delay:120ms from:#search">
<form action="/browse" method="GET" id="browse-search-form" hx-get="/browse" hx-trigger="submit, input changed delay:350ms from:#search, search from:#search" hx-sync="this:replace">
<input
id="search"
name="q"