Skip to content

Conversation

@21Ladder
Copy link

@21Ladder 21Ladder commented Aug 28, 2025

Description

Closes: #319
This PR fixes the formatting issue where long usernames in the GeohashPersonItem row were causing strange wrapping and misaligned text.

  • Changed from multiple Text composables in a Row to a single AnnotatedString inside one Text.
  • Enabled line breaking and hyphenation for long/no-space names.

BEFORE

long_username_before

AFTER

long_username_after

Checklist

@callebtc
Copy link
Collaborator

callebtc commented Aug 28, 2025

hey, I've limited the max length of the nickname, would you be able to resolve conflicts and see if this PR is still necessary? I'd like to have the formatting fix in as well if it's not already included. appreciate the PR.

@21Ladder
Copy link
Author

Hello, i have seen that, just the truncateNickname function is missing in the ChatUiUtils.kt on main. If the nickname is limited to max 16, it will work fine and looks the following:

image

@callebtc callebtc added complete Ready to merge UI/UX Improving interactions labels Sep 11, 2025
@callebtc
Copy link
Collaborator

thank you @21Ladder and sorry for the delay. I love these careful fixes, keep it coming!

@callebtc
Copy link
Collaborator

@21Ladder could you fix the build errors?

# Conflicts:
#	app/src/main/java/com/bitchat/android/ui/GeohashPeopleList.kt
@21Ladder 21Ladder force-pushed the fix-long-username-formatting branch from f47cda8 to f6d953f Compare September 14, 2025 19:45
@21Ladder
Copy link
Author

@callebtc hello, should work fine now, build errors where removed.
Did not process due to duplicate truncateNickName function.

Here is the UI ouput and the final result how it will look like:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

complete Ready to merge UI/UX Improving interactions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Long usernames are weirdly formatted.

2 participants