From dc6e02f3ec9b4096f9708649ba36c83eb8eb8e69 Mon Sep 17 00:00:00 2001 From: JzoNg Date: Thu, 9 Jan 2025 17:46:34 +0800 Subject: [PATCH] fix plugin card --- web/app/components/plugins/plugin-item/index.tsx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/web/app/components/plugins/plugin-item/index.tsx b/web/app/components/plugins/plugin-item/index.tsx index 3dd520d39a..0c74f90a1b 100644 --- a/web/app/components/plugins/plugin-item/index.tsx +++ b/web/app/components/plugins/plugin-item/index.tsx @@ -130,11 +130,15 @@ const PluginItem: FC = ({ packageName={name} packageNameClassName='w-auto max-w-[150px]' /> -
·
-
- - {t('plugin.endpointsEnabled', { num: endpoints_active })} -
+ {category === PluginType.extension && ( + <> +
·
+
+ + {t('plugin.endpointsEnabled', { num: endpoints_active })} +
+ + )}
@@ -154,7 +158,7 @@ const PluginItem: FC = ({ && <>
{t('plugin.from')} marketplace
- +
}