From 94f3815eb46695485cea03a02895394de82451f5 Mon Sep 17 00:00:00 2001 From: Rodrigo Manozzo Date: Mon, 12 Oct 2026 20:59:09 -0300 Subject: [PATCH] fix(templates): cap visible tags so the Create button stays visible Template cards have a fixed height, and the header rendered every tag. Portabase has 27, which pushed the description and footer (Create button) out of the card. Show the first 6 tags plus a "+N" badge whose title lists the rest. Closes #5660 Co-Authored-By: Claude Opus 5.5 --- .../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} + + )}
)}