Originally created by: sumamakhan761
In the CRM Lead Profile Drawer (LeadProfileDrawer.tsx), the pipeline stage switcher, origin automation, audience list, contact credentials, and the deal milestones stepper are squished into a narrow column on the right side of the avatar instead of taking the full width of the drawer.
The drawer's top profile section is structured as:
<div className="flex items-start gap-4">
<div className="relative shrink-0">{/* 64px Avatar */}</div>
<div className="flex-1 min-w-0">
{/* Name, @username, follower badges */}
{/* Stage dropdown */}
{/* Origin automation badge */}
{/* Audience list badge */}
{/* Contact credentials */}
{/* Deal milestones vertical stepper */}
</div>
</div>
Because all these elements are nested inside the right-hand child of the avatar's flex container, they are constrained to the right side of the avatar. Meanwhile, sections below them (like Lead Tags and Notes) take up the full 100% width of the drawer, making the layout uneven and cramped.
@username, followers, and primary status badges) should form a compact, self-contained header row.apps/web/app/dashboard/[companyId]/crm/components/leads/LeadProfileDrawer.tsx
LeadProfileDrawer.tsx, find the lead identity badges inside <div className="flex-1 min-w-0">.<div className="flex-1 min-w-0"> and the outer <div className="flex items-start gap-4"> right after the badge list (</span></div></div></div>).div blocks directly beneath the header row.</div></div> that previously closed the avatar container at the bottom of the milestones section.