From 05970e7b234d4742ceab2967490597fbde47dbdd Mon Sep 17 00:00:00 2001 From: Yash Kumar Date: Thu, 15 Oct 2026 01:33:09 +0530 Subject: [PATCH] Merge pull request #5661 from manozzo/fix/template-card-tags-overflow fix(templates): cap visible tags so the Create button stays visible (cherry picked from commit d9fe046396528254f46788848ac5f97051123bfd) [skip ci] --- .../components/dashboard/project/add-template.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/dokploy/components/dashboard/project/add-template.tsx b/apps/dokploy/components/dashboard/project/add-template.tsx index 44512d93a..07fe775dc 100644 --- a/apps/dokploy/components/dashboard/project/add-template.tsx +++ b/apps/dokploy/components/dashboard/project/add-template.tsx @@ -435,7 +435,7 @@ export const AddTemplate = ({ environmentId, baseUrl }: Props) => { {viewMode === "detailed" && template?.tags?.length > 0 && (
- {template?.tags?.map((tag) => ( + {template.tags.slice(0, 6).map((tag) => ( { {tag} ))} + {template.tags.length > 6 && ( + + +{template.tags.length - 6} + + )}
)}