Unify SearchBox styles with Input component and add autoFocus

This commit is contained in:
lyzno1
2025-09-28 14:33:27 +08:00
parent 7da22e4915
commit 4d49db0ff9
2 changed files with 8 additions and 3 deletions

View File

@ -168,6 +168,7 @@ const NodeSelector: FC<NodeSelectorProps> = ({
<div className='relative m-2' onClick={e => e.stopPropagation()}>
{activeTab === TabsEnum.Start && (
<SearchBox
autoFocus
search={searchText}
onSearchChange={setSearchText}
tags={tags}
@ -200,6 +201,7 @@ const NodeSelector: FC<NodeSelectorProps> = ({
)}
{activeTab === TabsEnum.Tools && (
<SearchBox
autoFocus
search={searchText}
onSearchChange={setSearchText}
tags={tags}