From 8c900408bdd779465b3aa6c1ed93f7fb7050849b Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Mon, 6 Jul 2026 03:32:26 -0600 Subject: [PATCH] fix(tag-filter): update no tags message and improve layout - Changed the message displayed when no tags are found to "No tags created yet." for better clarity. - Added a consistent layout for the tag handling component in both TagFilter and TagSelector, ensuring a unified user experience. --- apps/dokploy/components/shared/tag-filter.tsx | 8 ++++++-- apps/dokploy/components/shared/tag-selector.tsx | 16 ++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/apps/dokploy/components/shared/tag-filter.tsx b/apps/dokploy/components/shared/tag-filter.tsx index 0faa37a88..12a210a6d 100644 --- a/apps/dokploy/components/shared/tag-filter.tsx +++ b/apps/dokploy/components/shared/tag-filter.tsx @@ -94,9 +94,10 @@ export function TagFilter({
- No tags found. + {tags.length === 0 + ? "No tags created yet." + : "No tags found."} -
@@ -118,6 +119,9 @@ export function TagFilter({ ); })} +
+ +
diff --git a/apps/dokploy/components/shared/tag-selector.tsx b/apps/dokploy/components/shared/tag-selector.tsx index 26e528e32..036173ded 100644 --- a/apps/dokploy/components/shared/tag-selector.tsx +++ b/apps/dokploy/components/shared/tag-selector.tsx @@ -111,19 +111,12 @@ export function TagSelector({
- No tags found. + {tags.length === 0 + ? "No tags created yet." + : "No tags found."} -
- {tags.length === 0 && ( -
- - No tags created yet. - - -
- )} {tags.map((tag) => { const isSelected = selectedTags.includes(tag.id); @@ -153,6 +146,9 @@ export function TagSelector({ ); })} +
+ +