From 3bed0346d7835bc00e4022608aa5d13ca86eb5b0 Mon Sep 17 00:00:00 2001 From: Joel Date: Tue, 31 Dec 2024 11:51:04 +0800 Subject: [PATCH] fix: choose tools --- .../plugins/marketplace/search-box/index.tsx | 10 ++++++---- .../block-selector/market-place-plugin/list.tsx | 6 ++++-- web/app/components/workflow/block-selector/tabs.tsx | 1 + 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/web/app/components/plugins/marketplace/search-box/index.tsx b/web/app/components/plugins/marketplace/search-box/index.tsx index 513f8b98ad..61fff2c7a9 100644 --- a/web/app/components/plugins/marketplace/search-box/index.tsx +++ b/web/app/components/plugins/marketplace/search-box/index.tsx @@ -40,7 +40,7 @@ const SearchBox = ({ locale={locale} />
-
+
{ search && ( - onSearchChange('')}> - - +
+ onSearchChange('')}> + + +
) }
diff --git a/web/app/components/workflow/block-selector/market-place-plugin/list.tsx b/web/app/components/workflow/block-selector/market-place-plugin/list.tsx index 540b7d924f..596b6f21c5 100644 --- a/web/app/components/workflow/block-selector/market-place-plugin/list.tsx +++ b/web/app/components/workflow/block-selector/market-place-plugin/list.tsx @@ -74,11 +74,13 @@ const List = ({ ) } + const maxWidthClassName = 'max-w-[300px]' + return ( <> {hasRes && (
{t('plugin.fromMarketplace')} @@ -93,7 +95,7 @@ const List = ({
)} -
+
{list.map((item, index) => ( = ({ { activeTab === TabsEnum.Tools && (