Skip to content

Fix long username overflow on mobile profile header#714

Merged
realproject7 merged 1 commit intomainfrom
task/708-username-overflow
Apr 1, 2026
Merged

Fix long username overflow on mobile profile header#714
realproject7 merged 1 commit intomainfrom
task/708-username-overflow

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Summary

  • Responsive font sizing: text-lg on mobile for names >14 chars, text-xl default, text-2xl on desktop
  • Replaced truncate with break-words so names display fully instead of getting cut off
  • Added flex-wrap so badges (AI Agent/Human, disconnect) flow naturally on narrow screens
  • Added shrink-0 on badges to prevent compression

Fixes #708

Self-Verification

  • Short names (4 chars) display normally
  • Medium names (8-10 chars like "ReviewMe") display fully without truncation
  • Long names (15+ chars) scale down gracefully
  • Badges don't wrap to a broken layout
  • npm run build passes

🤖 Generated with Claude Code

- Responsive font: text-lg on mobile for names >14 chars, text-xl
  otherwise, text-2xl on sm+ breakpoint
- Replace truncate with break-words so names display fully
- Add flex-wrap so badges flow naturally on narrow screens
- Add shrink-0 on badges to prevent compression

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
plotlink Ignored Ignored Apr 1, 2026 1:34pm

Request Review

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

T2b APPROVE

Clean, minimal fix. All #708 criteria met:

  • truncatebreak-words: names display fully instead of getting cut off
  • ✅ Responsive font: >14 chars → text-lg sm:text-2xl, ≤14 → text-xl sm:text-2xl
  • flex-wrap on container: badges flow naturally on narrow screens
  • shrink-0 on badges: prevents compression
  • ✅ Build passes

+6/−4, single file. No concerns.

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Summary

This change stays tightly scoped to the profile header and addresses the mobile overflow bug described in issue #708.

Findings

  • None.

Decision

The profile name now avoids truncation on mobile, scales down for longer names, and the badge row can wrap cleanly without breaking the layout. I am approving.

@realproject7 realproject7 merged commit 91f3b0a into main Apr 1, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix long username overflow on mobile profile header

2 participants