RocketChat / RocketChat/Rocket.Chat

Inconsistent avatar resizing in Directory Users Table compared to Admin Table

Open
#38,536 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

In the Directory > Users tab, user avatars shrink incorrectly when:

  1. Screen width is reduced
  2. Users have long display names or usernames
  3. Compared to the Admin > Users table, where avatars maintaina consistent size
Steps to reproduce:
  1. Create a test user with a long display name
  2. Go to Directory > Users tab
  3. Reduce the browser window
  4. Observe avatars shrinking in size
  5. Compare with Admin > Users table (avatars maintain fixed size)
Actual behaviour:

Avatars shrink with the available space, becoming inconsistent with long names.

Directory> Users Tab

https://github.com/user-attachments/assets/c66147cf-4bed-41b5-8f49-87a3321616b2

Expected behaviour:

Avatars should maintain a consistent size.
Text should truncate with ellipsis ... when space is limited, similar to Admin Users table behaviour.

Admin> Users Tab

https://github.com/user-attachments/assets/154efaab-22bf-477f-b0c5-a4c1330a5856

Server Setup Information:
  • Version of Rocket.Chat Server: develop branch (latest)
  • Operating System: Linux
  • NodeJS Version: 22.16.0
Client Setup Information
  • Operating System: linux
Additional context

none

Relevant logs:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the Directory > Users table with the Admin > Users table while reproducing the issue using a long display name or username and a narrow browser window. Trace the table and avatar presentation entry points, then verify that avatars retain a consistent size and text truncates with an ellipsis in the Directory view.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.