Commit 1d88cb05f for llama.cpp
commit 1d88cb05f1a257f90741538ca3aca6c1b015c6d3
Author: aiqubits <aiqubits@hotmail.com>
Date: Tue Oct 20 11:58:38 2026 +0800
ui: hide the native clear button in SearchInput (#30719)
SearchInput already renders its own clear button.
Hide the browser's native search cancel button to avoid showing both controls.
Fixes #28627
Signed-off-by: aiqubits <aiqubits@hotmail.com>
diff --git a/tools/ui/src/lib/components/app/forms/SearchInput.svelte b/tools/ui/src/lib/components/app/forms/SearchInput.svelte
index 0280a801d..054d477b1 100644
--- a/tools/ui/src/lib/components/app/forms/SearchInput.svelte
+++ b/tools/ui/src/lib/components/app/forms/SearchInput.svelte
@@ -61,7 +61,9 @@
bind:ref
bind:value
{autofocus}
- class="max-md:h-10 pl-9 {showClearButton ? 'pr-9' : ''} {size === 'sm' ? 'h-8' : ''}"
+ class="max-md:h-10 pl-9 {showClearButton ? 'pr-9' : ''} {size === 'sm'
+ ? 'h-8'
+ : ''} [&::-webkit-search-cancel-button]:hidden"
{id}
oninput={handleInput}
onkeydown={onKeyDown}