Repository navigation
Fix right edge clipping of italic text in user autocompletion - #21820
Conversation
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
|
Thanks for your pull request! Unfortunately, it doesn't meet the minimum requirements for review:
Please update your PR to address the above. Requirements:
This PR will be automatically closed in 7 days if these requirements are not met. |
There was a problem hiding this comment.
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
.usernameto avoid italic glyph clipping. - Remove ellipsis truncation from the unknown-user
.descriptionand force it to remain on one line so the “Search for user” context stays visible.
| .username { | ||
| padding-right: 2px; | ||
| font-style: italic; |
|
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 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
left a comment
There was a problem hiding this comment.
💖 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! |
|
👋🏽 @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:
|
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:
Fix Right Edge Clipping of Italicized Text
As seen in
app/styles/ui/_autocompletion.scss, both the.usernameand.descriptionhavefont-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 addedpadding-right: 2px;to the .username class to provide the necessary buffer to render these slanted characters fully.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
After
Release notes
Notes: Fixed clipping on italicized text and improved ellipsis UX to ensure context visibility in the user autocompletion list.