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:
@@ -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}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user