diff --git a/src/app/(user)/user/profiles/page.tsx b/src/app/(user)/user/profiles/page.tsx index 4088d20..22495ba 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 = 6; + const INITIAL_TAG_COUNT = 3; return (
@@ -334,7 +334,7 @@ function ProfileCard({ profile, resolvedAvatarUrl }: ProfileCardProps) { width={16} height={15} /> - + {location}
@@ -376,11 +376,11 @@ function ProfileCard({ profile, resolvedAvatarUrl }: ProfileCardProps) { {expertiseTags.length > 0 && (

Expertise:

-
+
{(showAllTags ? expertiseTags : expertiseTags.slice(0, INITIAL_TAG_COUNT)).map((tag, index) => ( {tag} @@ -388,7 +388,7 @@ function ProfileCard({ profile, resolvedAvatarUrl }: ProfileCardProps) { {expertiseTags.length > INITIAL_TAG_COUNT && ( diff --git a/src/components/home/TopProfessionals.tsx b/src/components/home/TopProfessionals.tsx index 1233b8a..4b1d8f2 100644 --- a/src/components/home/TopProfessionals.tsx +++ b/src/components/home/TopProfessionals.tsx @@ -32,7 +32,7 @@ function ProfessionalCard({ const [imgError, setImgError] = useState(false); const placeholder = '/assets/icons/user-placeholder-icon.svg'; const isPlaceholder = imageUrl === placeholder; - const INITIAL_TAG_COUNT = 4; + const INITIAL_TAG_COUNT = 3; return (
@@ -91,14 +91,15 @@ function ProfessionalCard({

Location:

-
+
Location - + {location}
@@ -111,17 +112,17 @@ function ProfessionalCard({

Expertise:

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