fix: avatar resize issue in users directory table#38538
fix: avatar resize issue in users directory table#38538Khizarshah01 wants to merge 1 commit intoRocketChat:developfrom
Conversation
|
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 |
|
WalkthroughThe UsersTableRow component's layout structure is refactored to replace nested Flex containers with a streamlined Box-based flex layout. Explicit flex properties are introduced to control element sizing and growth behavior, addressing avatar resizing inconsistencies when space is limited or display names are long. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)**/*.{ts,tsx,js}📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)
Files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (1)
✏️ Tip: You can disable this entire section by setting 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 |
Proposed changes (including videos or screenshots)
Fixed an issue where user avatars in the Directory > Users table would shrink incorrectly when the screen width was reduced or when usernames were very long.
Changes made:
UsersTableRow.tsxto use the same Flexbox implementation as theAdmin > Userstable.withTruncatedTextto the GenericTableCell, same asAdmin> Userstable, consistent overflow handling.This ensures avatars maintain a fixed size regardless of screen width or text length, aligning the behaviour with the Admin view.
Issue(s)
fixes #38536
Steps to test or reproduce
Directory > Userstab.Further comments
Before behaviour (buggy):
Screencast.from.2026-02-07.19-55-23.mp4
After behaviour (fixed):
Screencast.from.2026-02-07.20-01-37.mp4
Summary by CodeRabbit