From 0845e58a49ab96d1d9d53cbb110068eccc294326 Mon Sep 17 00:00:00 2001 From: pradeepkumar Date: Fri, 10 Apr 2026 23:51:47 +0530 Subject: [PATCH] refactor: increase initial expertise tag count and constrain tag container height in profile and professional components --- src/app/(user)/user/profiles/page.tsx | 4 ++-- src/components/home/TopProfessionals.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/(user)/user/profiles/page.tsx b/src/app/(user)/user/profiles/page.tsx index 678c219..0b1d4ee 100644 --- a/src/app/(user)/user/profiles/page.tsx +++ b/src/app/(user)/user/profiles/page.tsx @@ -265,7 +265,7 @@ function ProfileCard({ profile, resolvedAvatarUrl }: ProfileCardProps) { const truncatedDescription = description && description.length > maxDescLength ? description.slice(0, maxDescLength) + '...' : description || ''; - const INITIAL_TAG_COUNT = 3; + const INITIAL_TAG_COUNT = 5; return (
@@ -376,7 +376,7 @@ function ProfileCard({ profile, resolvedAvatarUrl }: ProfileCardProps) { {expertiseTags.length > 0 && (

Expertise:

-
+
{(showAllTags ? expertiseTags : expertiseTags.slice(0, INITIAL_TAG_COUNT)).map((tag, index) => ( @@ -112,7 +112,7 @@ function ProfessionalCard({

Expertise:

-
+
{expertise.slice(0, INITIAL_TAG_COUNT).map((tag, index) => (