fix: search click blur

This commit is contained in:
Joel
2026-01-23 10:57:39 +08:00
parent 8f75be52a1
commit 85cf995011
2 changed files with 5 additions and 3 deletions

View File

@ -52,7 +52,7 @@ const SearchBox = ({
<div className="flex grow items-center gap-x-2 p-1">
<input
className={cn(
'body-md-medium inline-block grow appearance-none bg-transparent text-text-secondary outline-none',
'body-md-medium var-search-input inline-block grow appearance-none bg-transparent text-text-secondary outline-none',
)}
value={search}
onChange={(e) => {
@ -82,7 +82,7 @@ const SearchBox = ({
<input
autoFocus={autoFocus}
className={cn(
'system-sm-regular ml-1.5 mr-1 inline-block grow appearance-none bg-transparent text-components-input-text-filled outline-none placeholder:text-components-input-text-placeholder',
'system-sm-regular var-search-input ml-1.5 mr-1 inline-block grow appearance-none bg-transparent text-components-input-text-filled outline-none placeholder:text-components-input-text-placeholder',
search && 'mr-2',
)}
value={search}

View File

@ -188,7 +188,9 @@ const ToolPicker: FC<Props> = ({
e.preventDefault()
}}
>
<div className="p-2 pb-1">
<div
className="p-2 pb-1"
>
<SearchBox
search={searchText}
onSearchChange={setSearchText}