fix: prevent profile bio/description horizontal overflow

Add min-w-0 to the flex-1 right content column so it can shrink below
its content width (flex items default to min-width:auto), and break-words
on the bio paragraph for long unbroken strings.
This commit is contained in:
pradeepkumar
2026-06-23 12:58:56 +05:30
parent decea4687e
commit 2245584734
2 changed files with 2 additions and 2 deletions

View File

@@ -533,7 +533,7 @@ export default function AgentProfileView() {
</div> </div>
{/* Right Content - Profile Info + Experience + All Sections */} {/* Right Content - Profile Info + Experience + All Sections */}
<div className="flex-1 space-y-4"> <div className="flex-1 min-w-0 space-y-4">
{/* Profile Card - No edit button for user view */} {/* Profile Card - No edit button for user view */}
<ProfileCard <ProfileCard
firstName={agentProfile.firstName} firstName={agentProfile.firstName}

View File

@@ -276,7 +276,7 @@ export function ProfileCard({
</div> </div>
{/* Bio */} {/* Bio */}
<p className="text-[14px] font-normal text-[#00293D] font-serif leading-[20px] mb-4 text-center lg:text-left"> <p className="text-[14px] font-normal text-[#00293D] font-serif leading-[20px] mb-4 text-center lg:text-left break-words">
{bio} {bio}
</p> </p>