fix: truncate long usernames on map user cards#4629
Merged
mariojsnunes merged 5 commits intoONEARMY:masterfrom Mar 1, 2026
Merged
fix: truncate long usernames on map user cards#4629mariojsnunes merged 5 commits intoONEARMY:masterfrom
mariojsnunes merged 5 commits intoONEARMY:masterfrom
Conversation
Long usernames overflow the card and hide the PRO badge. The Text element already had text-overflow: ellipsis but flex parents prevented shrinking due to the default min-width: auto. - Add minWidth: 0 to Username flex container and InternalLink wrapper - Add minWidth: 0 to CardDetailsMemberProfile and CardDetailsSpaceProfile - Add flexShrink: 0 to UserBadge so badges are never compressed
onearmy-community-platform
|
||||||||||||||||||||||||||||
| Project |
onearmy-community-platform
|
| Branch Review |
pull/4629
|
| Run status |
|
| Run duration | 06m 30s |
| Commit |
|
| Committer | Mário Nunes |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
0
|
|
|
0
|
|
|
0
|
|
|
0
|
|
|
88
|
| View all changes introduced in this branch ↗︎ | |
Contributor
|
@all-contributors add @GMetaxakis for code |
Contributor
|
I've put up a pull request to add @GMetaxakis! 🎉 |
Member
|
@GMetaxakis Legend! Thank you! 🎊 |
Collaborator
|
🎉 This PR is included in version 2.113.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Checklist
CSS-only fix (adding
minWidth: 0andflexShrink: 0to existing flex containers). Existing tests pass. Verified visually.PR Type
What kind of change does this PR introduce?
What is the new behavior?
Long usernames on map user cards are now properly truncated with
...and the PRO badge always remains visible.The
<Text>element already hadtext-overflow: ellipsisbut flex parent containers had the defaultmin-width: auto, preventing them from shrinking below content size. Fixed by:minWidth: 0to the Username flex container and its InternalLink wrapperminWidth: 0to CardDetailsMemberProfile and CardDetailsSpaceProfile parent containersflexShrink: 0to UserBadge so badge icons are never compressedDoes this PR introduce a DB Schema Change or Migration?
Git Issues
Closes #4598