fix(omnichannel): transfer comment text wrapping - #41901
Conversation
Add overflow-wrap and word-wrap styles to MessageSystemBody to prevent long transfer comments from being truncated with ellipsis. Fixes RocketChat#26723
|
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📜 Recent review details⏰ Context from checks skipped due to timeout. (1)
🧰 Additional context used📓 Path-based instructions (2)**/*.{ts,tsx,js}📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)
Files:
apps/meteor/**📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🔇 Additional comments (1)
Walkthrough
ChangesSystem message wrapping
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This localized styling change allows long transfer comments to wrap instead of being truncated, with no actionable merge-blocking risk remaining beyond normal checks and review. Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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 |
Fixes #26723
Problem
When transferring an omnichannel conversation to another agent with a comment, the comment text was not wrapping to new lines and was being truncated with '...' (ellipsis).
Solution
Added overflow-wrap: break-word and word-wrap: break-word styles to the MessageSystemBody component in the SystemMessage variant to allow long text to wrap properly.
Testing
Summary by CodeRabbit