Skip to content

Fix clipped descenders in the group-call participant name - #31265

Open
anriltine wants to merge 1 commit into
telegramdesktop:devfrom
HyperlinksSpace:fix/short-info-cover-name-clipping
Open

Fix clipped descenders in the group-call participant name#31265
anriltine wants to merge 1 commit into
telegramdesktop:devfrom
HyperlinksSpace:fix/short-info-cover-name-clipping

Conversation

@anriltine

Copy link
Copy Markdown

Summary

  • The group-call participant card (CoverItem / PeerShortInfoCover) clips descenders in the name. Letters such as g and y in a name like "Ignatyev" are cut off along the bottom.
  • Cause: shortInfoCover (inherited by groupCallMenuCover) uses a 15px semibold FlatLabel with maxHeight: 19px. FlatLabel sizes itself to min(textHeight, maxHeight), so 19px is below the font line height and the widget clips the glyphs.
  • Fix: raise the name maxHeight to 24px, matching the profile cover name cap (infoProfileCover already uses 24px for a similar semibold name). This is a ceiling, not a fixed height, so a single line still sizes to the font metrics and does not overlap the status line.

Fixes #31264

Test plan

  • Join a voice/group call on Windows.
  • Right-click a participant whose name contains descenders (g, y, p, j, q).
  • Confirm the name in the popup card is fully visible, including the loop of g.
  • Confirm a long name still elides on one line instead of wrapping over the status.
  • Confirm the same cover used by the short-info box (peer card outside calls) is also unclipped.

Made with Cursor

The short-info cover uses a 15px semibold name label, but maxHeight was 19px, which is below the font line height, so glyphs such as g and y were cut off.

Fix telegramdesktop#31264

Co-authored-by: Cursor <[email protected]>
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

Group call participant card clips descenders in the user name

2 participants