Skip to content

Truncate long display names on the profile widget#30

Open
eudanielhenrique wants to merge 1 commit into
Jurredr:masterfrom
eudanielhenrique:fix/profile-name-truncate
Open

Truncate long display names on the profile widget#30
eudanielhenrique wants to merge 1 commit into
Jurredr:masterfrom
eudanielhenrique:fix/profile-name-truncate

Conversation

@eudanielhenrique

Copy link
Copy Markdown
Contributor

Closes the "Truncate name if too long" TO-DO item.

Long GitHub display names ran into the data boxes on the right side of the card (which shift further left the more &data= options are requested). The name is now truncated with an ellipsis to fit the space actually available for the given number of data boxes (1–4).

Also escapes the name, login, and URL text so a display name containing &, <, or > can't break the SVG's XML structure — it was being interpolated raw before.

Test plan

  • npm run build compiles cleanly
  • Verified the truncation math against the actual box-layout formula for 1–4 data boxes with a long mock name (short names pass through untouched)

Closes the "Truncate name if too long" TO-DO item.

Long GitHub display names ran into the data boxes on the right side of
the card (which shift further left the more &data= options are
requested). The name is now truncated with an ellipsis to fit the
space actually available for the given number of data boxes.

Also escapes the name, login, and URL text so a display name
containing &, <, or > can't break the SVG's XML structure — it was
being interpolated raw before.
Copilot AI review requested due to automatic review settings July 14, 2026 13:25
@vercel

vercel Bot commented Jul 14, 2026

Copy link
Copy Markdown

@eudanielhenrique is attempting to deploy a commit to the Jurre's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

2 participants