From 4d49db0ff9c204fb12ae1346f64404e673572833 Mon Sep 17 00:00:00 2001 From: lyzno1 Date: Sun, 28 Sep 2025 14:33:27 +0800 Subject: [PATCH] Unify SearchBox styles with Input component and add autoFocus --- .../components/plugins/marketplace/search-box/index.tsx | 9 ++++++--- web/app/components/workflow/block-selector/main.tsx | 2 ++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/web/app/components/plugins/marketplace/search-box/index.tsx b/web/app/components/plugins/marketplace/search-box/index.tsx index 0bc214ae1a..c398964b4e 100644 --- a/web/app/components/plugins/marketplace/search-box/index.tsx +++ b/web/app/components/plugins/marketplace/search-box/index.tsx @@ -19,6 +19,7 @@ type SearchBoxProps = { usedInMarketplace?: boolean onShowAddCustomCollectionModal?: () => void onAddedCustomTool?: () => void + autoFocus?: boolean } const SearchBox = ({ search, @@ -32,6 +33,7 @@ const SearchBox = ({ usedInMarketplace = false, supportAddCustomTool, onShowAddCustomCollectionModal, + autoFocus = false, }: SearchBoxProps) => { return (
@@ -82,11 +84,12 @@ const SearchBox = ({ { !usedInMarketplace && ( <> -
+
= ({
e.stopPropagation()}> {activeTab === TabsEnum.Start && ( = ({ )} {activeTab === TabsEnum.Tools && (