Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Username with emoji truncated when viewing post #2479

Open
MetaflameDragon opened this issue Jan 10, 2024 · 2 comments
Open

Username with emoji truncated when viewing post #2479

MetaflameDragon opened this issue Jan 10, 2024 · 2 comments
Labels
bug Something isn't working x:planned We're on it!

Comments

@MetaflameDragon
Copy link

Describe the bug
On Android, when viewing a post, certain usernames with an emoji at the end become truncated.
Currently, the only account cursed with this that I could find is dholms.xyz, "daniel 🫠" at the time of writing.

To Reproduce
View a post made by the user. Their username will truncate the last emoji. Again, this only happens for very specific usernames, e.g.
"daniel 🫠".
Reply or parent posts don't have this issue, this only happens for the username on the currently viewed post.

Screenshots

Details

  • Platform: Android, Bluesky app
  • Platform version: Android 11
  • App version: 1.63.0
@MetaflameDragon MetaflameDragon added the bug Something isn't working label Jan 10, 2024
@pfrazee pfrazee added the x:planned We're on it! label Jan 11, 2024
@pfrazee
Copy link
Collaborator

pfrazee commented Jan 11, 2024

Lovely. Thank you for the solid report!

@MetaflameDragon
Copy link
Author

I did a little bit more investigation, and it confirmed my suspicion that it's to do with emoji added in Unicode v14.0 (and later). A bit lengthy, but I tried to be thorough.

A common symptom is that these emoji show up as crossed boxes in the input field when changing my username. This one (below) was supposed to be 🫶. This isn't specific to skintone-modified emoji, e.g. 🩷 had the same problem.

This resulted in truncation like in dholms' case.

This happened even with emoji or text further in the name.


And as an added bonus, this seems to cause issues on the profile screen too. I filled my username with beans for this one. (Note that the profile screen only shows 3 beans emoji, not the full 8)

I suspect that the text element might be calculating the expected width incorrectly specifically for the newly-added emoji, and not allocating enough space for truncation to not happen?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working x:planned We're on it!
Projects
None yet
Development

No branches or pull requests

2 participants