From 1787c5c93f32059881fdb4f649de280cb878d532 Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 16 Oct 2024 16:39:47 +0800 Subject: [PATCH] chore: handle tag name too long --- web/app/(commonLayout)/plugins/test/card/page.tsx | 2 +- web/app/components/plugins/card/base/org-info.tsx | 4 +--- web/app/components/plugins/card/card-more-info.tsx | 10 +++++++--- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/web/app/(commonLayout)/plugins/test/card/page.tsx b/web/app/(commonLayout)/plugins/test/card/page.tsx index db54d5c9d3..eea1d32bec 100644 --- a/web/app/(commonLayout)/plugins/test/card/page.tsx +++ b/web/app/(commonLayout)/plugins/test/card/page.tsx @@ -67,7 +67,7 @@ const PluginList = async () => { payload={plugin as any} locale={locale} footer={ - + } /> ))} diff --git a/web/app/components/plugins/card/base/org-info.tsx b/web/app/components/plugins/card/base/org-info.tsx index 0d335eacad..3d549d6c5e 100644 --- a/web/app/components/plugins/card/base/org-info.tsx +++ b/web/app/components/plugins/card/base/org-info.tsx @@ -17,9 +17,7 @@ const OrgInfo = ({ {orgName && ( <> {orgName} - - / - + / )} diff --git a/web/app/components/plugins/card/card-more-info.tsx b/web/app/components/plugins/card/card-more-info.tsx index b3328e53bd..b7ba8c1a53 100644 --- a/web/app/components/plugins/card/card-more-info.tsx +++ b/web/app/components/plugins/card/card-more-info.tsx @@ -15,11 +15,15 @@ const CardMoreInfo = ({ {downloadCount !== undefined && tags && tags.length > 0 &&
ยท
} {tags && tags.length > 0 && ( <> -
+
{tags.map(tag => ( -
+
# - {tag} + {tag}
))}