-
Notifications
You must be signed in to change notification settings - Fork 794
Fix: Channel name truncation visibility #3166 #3168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Fix: Channel name truncation visibility #3166 #3168
Conversation
WalkthroughA new hover tooltip mechanism is added to Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)**/*.{ts,tsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🔇 Additional comments (2)
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 |
Description
This PR addresses issue #3166 where long channel names in the sidebar are truncated without a way to view the full name.
It implements a solution using
bash src/injected.tsto inject abash mouseoverevent listener. This listener detects if an element with a class containing "title" (like sidebar items) is truncatedbash (scrollWidth > clientWidth). If so, it adds a native browserbash titleattribute, displaying the full text in a tooltip on hover.Logic
bash mouseoveronbash document.body(delegated).- Condition:
bash title.bash titleattribute tobash innerText.Tasks
Verified tooltips appear for truncated sidebar items.
Verified tooltips do NOT appear for long chat messages.
Issue
Closes #3166
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.