proffiel card update

This commit is contained in:
pradeepkumar
2026-03-17 11:56:09 +05:30
parent aac05dd12d
commit 1fb4608ec1
2 changed files with 8 additions and 2 deletions

View File

@@ -271,8 +271,14 @@ export function ProfileCard({
<p className="text-[14px] font-bold text-[#00293D] font-fractul leading-[17px] mb-2 text-center lg:text-left">
Expertise:
</p>
{/* Separate long text entries from short tag entries */}
{expertise.filter(tag => tag.length > 60).length > 0 && (
<p className="text-[14px] font-normal text-[#00293D] font-serif leading-[20px] mb-2 text-center lg:text-left break-words">
{expertise.filter(tag => tag.length > 60).join(' ')}
</p>
)}
<div className="flex flex-wrap gap-2 justify-center lg:justify-start">
{expertise.map((tag, idx) => (
{expertise.filter(tag => tag.length <= 60).map((tag, idx) => (
<Tag key={idx}>{tag}</Tag>
))}
</div>