fix(fuselage): Add tooltip to SidebarV2ItemTitle when truncated Channel name#1865
Closed
dodaa08 wants to merge 1 commit intoRocketChat:mainfrom
Closed
fix(fuselage): Add tooltip to SidebarV2ItemTitle when truncated Channel name#1865dodaa08 wants to merge 1 commit intoRocketChat:mainfrom
dodaa08 wants to merge 1 commit intoRocketChat:mainfrom
Conversation
This adds a lightweight onMouseEnter handler to detect if the channel name is truncated and display the full text using the native browser title attribute.
|
Member
|
Hi there, thanks for the contribution 🚀 This fix needs to be done on Rocket.Chat side, its just a matter of adding title to the sidebar item |
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.
Proposed changes (including videos or screenshots)
This PR adds a lightweight tooltip to the SidebarV2ItemTitle component.
The Problem: When channel names in the sidebar are long, they are truncated with an ellipsis (...), but there was no way for users to see the full name without opening the channel.
Screencast.From.2026-02-24.00-29-52.mp4
After
Screencast.From.2026-02-24.00-29-20.mp4
Add smart tooltip to SidebarV2ItemTitle when truncated
Further comments
For this implementation, I used the native browser
title
attribute to keep the sidebar as lightweight as possible, especially given the high number of items it can contain. I've also ensured that any onMouseEnter prop passed by consumers is still executed correctly.
Does this approach look good to you, or would you prefer using a custom Tooltip component to match the design system more closely? I'm happy to refine this based on your feedback