From f637deacfc7963e7b1d5244a629a807e23cbc856 Mon Sep 17 00:00:00 2001 From: Steven Date: Tue, 26 Mar 2024 23:43:31 +0800 Subject: [PATCH] chore: tweak tag list --- web/src/components/TagList.tsx | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/web/src/components/TagList.tsx b/web/src/components/TagList.tsx index 7f10c5b1..2ad1c404 100644 --- a/web/src/components/TagList.tsx +++ b/web/src/components/TagList.tsx @@ -79,19 +79,23 @@ const TagList = () => { return (
- {t("common.tags")} - -
-
- {tags.map((t, idx) => ( - - ))} + showCreateTagDialog()}> + {t("common.tags")} +
+ {tags.length > 0 ? ( +
+ {tags.map((t, idx) => ( + + ))} +
+ ) : ( +
+

+ You can create tags by inputting `#tag`. +

+
+ )}
); }; @@ -137,7 +141,7 @@ const TagItemContainer: React.FC = (props: TagItemContain return ( <> -
+