Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/components/common/CreatorProfileHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ interface CreatorProfileHeaderProps {
className?: string;
}

const CREATOR_PROFILE_SUBTITLE_WRAP_CLASS_NAME =
'max-w-full whitespace-normal break-words [overflow-wrap:anywhere]';

const CreatorProfileHeader: React.FC<CreatorProfileHeaderProps> = ({
name,
handle,
Expand Down Expand Up @@ -77,7 +80,14 @@ const CreatorProfileHeader: React.FC<CreatorProfileHeaderProps> = ({
</h1>
{isVerified && <div className="shrink-0"><VerifiedBadge verified={true} /></div>}
</div>
<p className="truncate font-jakarta text-lg text-white/50">@{handle}</p>
<p
className={cn(
'font-jakarta text-lg text-white/50',
CREATOR_PROFILE_SUBTITLE_WRAP_CLASS_NAME
)}
>
@{handle}
</p>
<CreatorBio bio={bio} variant="profile" className="mt-2 max-w-md" />
</div>
</div>
Expand Down
Loading