fix(ui): truncate long package names on profile package likes page#1757
fix(ui): truncate long package names on profile package likes page#1757
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
📝 WalkthroughWalkthroughThe LikeCard component has been updated to improve handling of long package names through UI adjustments including truncation and tooltip display. The package name is now rendered within a truncate-enabled span with a title attribute for hover information, whilst the action area is wrapped in a shrink-0 container. A new comprehensive test file has been added to verify the component's rendering, truncation behaviour, tooltip functionality, and extraction of scoped package names from URLs. Suggested reviewers
🚥 Pre-merge checks | ✅ 1✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
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 |
🔗 Linked issue
N/A
🧭 Context
Very long package names overflow on the name package like page:
📚 Description
Truncate the package name with pure CSS while keeping the full name in the
titleattribute so it can be seen on hover (and by screen readers):