Skip to content

Fix right edge clipping of italic text in user autocompletion - #21820

Merged
tidy-dev merged 1 commit into
desktop:developmentfrom
hi2242:issue-21819
Oct 13, 2026
Merged

tidy-dev merged 1 commit into
desktop:developmentfrom
hi2242:issue-21819

Conversation

@hi2242

@hi2242 hi2242 commented Mar 18, 2026 •

Copy link
Copy Markdown
Contributor

Update the styling in the user autocompletion list to ensure that the right edge of italicized user nicknames and descriptions is fully visible and no longer cut off.

Closes #21819

Description

This PR addresses two UX/UI shortcoming in the user autocompletion dropdown:

  1. Fix Right Edge Clipping of Italicized Text
    As seen in app/styles/ui/_autocompletion.scss, both the .username and .description have font-style: italic; applied. Due to the way italicized characters slant to the right, the rightmost edge of these strings (especially in .unknown items) was being visually clipped. I added padding-right: 2px; to the .username class to provide the necessary buffer to render these slanted characters fully.

  2. Improve Username Ellipsis and Context Visibility (UX Improvement):
    Previously, when an unknown username was exceptionally long, both the username itself and the description text ("Search for user") were getting ellipsis'd (...) together, cluttering the view and hiding the useful context (as shown in the "Before" screenshot).

I believe standard UX practices dictate that the static context text ("Search for user") should remain fully visible, and only the variable, long username should take the ellipsis. To achieve this:

I removed @include ellipsis; from the .description class.

I added white-space: nowrap; to ensure the description is always displayed in full.

This ensures that even with a very long username, the item displays as longusername... Search for user, providing clear feedback and a much more polished user experience.

Screenshots

Before

image image

After

image image

Release notes

Notes: Fixed clipping on italicized text and improved ellipsis UX to ensure context visibility in the user autocompletion list.

Update the styling in the user autocompletion list to ensure that the right edge of italicized user nicknames and descriptions is fully visible and no longer cut off.

Fixes desktop#21819
@github-actions github-actions Bot added unmet-requirements external Pull request originating outside of the Desktop core team needs-triage labels Mar 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your pull request! Unfortunately, it doesn't meet the minimum requirements for review:

  • None of the referenced issues have the help wanted label

Please update your PR to address the above. Requirements:

  1. Include a detailed description of what this PR does
  2. Link to an issue with the help wanted label (use Fixes #123 or Closes #123 if it resolves the issue)

This PR will be automatically closed in 7 days if these requirements are not met.

@tidy-dev
tidy-dev requested a review from Copilot March 19, 2026 18:11
@tidy-dev tidy-dev added ready-for-review Pull Requests that are ready to be reviewed by the maintainers and removed unmet-requirements needs-triage labels Mar 19, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR tweaks the autocompletion dropdown styling for unknown users to prevent italic text from being visually clipped on the right edge and to improve readability when the entered username is very long.

Changes:

  • Add a small right padding buffer to the unknown-user .username to avoid italic glyph clipping.
  • Remove ellipsis truncation from the unknown-user .description and force it to remain on one line so the “Search for user” context stays visible.

Comment on lines 124 to 126
.username {
padding-right: 2px;
font-style: italic;
@hi2242

hi2242 commented Oct 10, 2026

Copy link
Copy Markdown
Contributor Author

Hi @sergiou87! Hope you're doing well.

I wanted to kindly follow up on this PR, as I recently checked the latest GitHub Desktop beta and noticed that the issue is still reproducible.

I've submitted a small CSS fix to address the italic text clipping and improve the truncation behavior in the user autocompletion dropdown. The related issue (#21819) also now has the help wanted label.

When you have a chance, would you mind taking a look at this PR and sharing your thoughts on the approach? I'd be happy to make any adjustments based on your feedback.

Thanks so much for your time and consideration!

@tidy-dev tidy-dev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💖 Thanks for the polish!

@hi2242

hi2242 commented Oct 13, 2026

Copy link
Copy Markdown
Contributor Author

💖 Thanks for the polish!

Hi @tidy-dev! Thank you so much for taking the time to review and approve my PR! I really appreciate it! 😊

I also wanted to ask about two other improvement PRs I submitted previously: #21851 and #21936.

Unfortunately, both were automatically closed after a period of inactivity, but the issues they address are still reproducible in the latest beta version.

If you have some time, would you mind taking a look at these PRs as well? I'd be more than happy to update the code or reopen them if needed.

Thanks again for your time and support!

@tidy-dev
tidy-dev merged commit d38106a into desktop:development Oct 13, 2026
38 checks passed
@tidy-dev

Copy link
Copy Markdown
Contributor

👋🏽 @hi2242 Thanks for wanting to contribute. Unfortunately, the team is small and our bandwidth for PR reviews is not much so I can't guarantee any follow through with external PRs that don't get through triage. :(

I did take quick gander at those PRs:

@hi2242

hi2242 commented Oct 14, 2026

Copy link
Copy Markdown
Contributor Author

Hi @tidy-dev! Thank you so much for taking the time to look into both PRs despite your team's busy schedule! I really appreciate your feedback and your help in keeping #21851 open for further review. 😊

wasi-master added a commit to wasi-master/corvene that referenced this pull request Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external Pull request originating outside of the Desktop core team ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI Bug: Right edge clipping of italicized text in user autocompletion list

3 participants