From 1d88cb05f1a257f90741538ca3aca6c1b015c6d3 Mon Sep 17 00:00:00 2001 From: aiqubits Date: Tue, 20 Oct 2026 11:58:38 +0800 Subject: [PATCH] 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 --- tools/ui/src/lib/components/app/forms/SearchInput.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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}