regression: emoji avatars overlap message content and render undersized - #41517
Conversation
Signed-off-by: Abhinav Kumar <abhinav@avitechlab.com>
|
Looks like this PR is ready to merge! 🎉 |
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📜 Recent review details⏰ Context from checks skipped due to timeout. (3)
|
| Layer / File(s) | Summary |
|---|---|
Custom emoji wrapping apps/meteor/app/theme/client/imports/components/emoji.css |
Custom emoji content uses white-space: nowrap. |
Message avatar emoji rendering packages/ui-avatar/src/components/MessageAvatar.tsx |
Emoji font size is derived from size, with a fallback; nested emoji inherit typography, while overflow, width, and non-custom alignment are constrained. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Possibly related PRs
- RocketChat/Rocket.Chat#39411: Modifies shared custom emoji styling in the same CSS file.
Suggested labels: type: bug
Suggested reviewers: sampaiodiego, martinschoeler
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
| Check name | Status | Explanation |
|---|---|---|
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check | ✅ Passed | The title clearly matches the main regression fix: emoji avatars overlapping content and rendering too small. |
| Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
| Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
Warning
Review ran into problems
🔥 Problems
Errors were encountered while retrieving linked issues.
Errors (1)
- CORE-2454: Request failed with status code 401
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
…vatar sizes Signed-off-by: Abhinav Kumar <abhinav@avitechlab.com>
|
Note on the
So |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release-8.7.0 #41517 +/- ##
=================================================
- Coverage 68.59% 68.55% -0.04%
=================================================
Files 4134 4136 +2
Lines 160802 159221 -1581
Branches 29298 27913 -1385
=================================================
- Hits 110303 109155 -1148
+ Misses 45392 44921 -471
- Partials 5107 5145 +38
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
cardoso
left a comment
There was a problem hiding this comment.
QA




Proposed changes (including videos or screenshots)
PR #39411 (emojione → native emoji migration) introduced two regressions in how emoji avatars render on messages — the avatar used by incoming webhooks/bots that set an emoji instead of an avatar image:
white-space: nowrap, so the hidden:shortcode:text wrapped into view. Combined with the new avatar<Box>wrapper (a flex item that shrink-wrapped to the hidden text's width), the avatar blew out well past 36px, showed the shortcode name, and overlapped the username/message content..emoji { font-size: 1.375rem }overrode the avatar box's2.25rem, so native emoji rendered at ~22px inside a 36px avatar instead of filling it.Fixes (all scoped to the message avatar; inline message emojis, reactions, and the emoji picker are untouched):
apps/meteor/app/theme/client/imports/components/emoji.css: restorewhite-space: nowrapon.emoji--customso the hidden shortcode stays clipped.packages/ui-avatar/src/components/MessageAvatar.tsx: addmin-width: 0; overflow: hidden;to the avatar box so the hidden shortcode can't drive its width, and.emoji { font-size: inherit; line-height: inherit; }so native emoji fill the avatar.Issue(s)
CORE-2454
Steps to test or reproduce
:ghost1:), save, copy the webhook URL, and post a message through it.:ghost:).Further comments
CORE-2454
Summary by CodeRabbit
Summary by CodeRabbit