fix(svg): support dynamic text-overflow scaling for extremely long usernames#6122
Conversation
…ernames Closes JhaSourav07#5248 - Increase MAX_USERNAME_DISPLAY_LENGTH to 20 - Add getUsernameFontSize() to calculate scaling font-size for usernames longer than 12 chars - Apply getUsernameFontSize() to text tags inside generator.ts and VersusPanel.tsx - Add and update unit tests for username truncation and scaling
|
@MasterJi27 is attempting to deploy a commit to the jhasourav07's projects Team on Vercel. A member of the Team first needs to authorize it. |
📦 Next.js Bundle Size Report (Gzipped Sizes)✨ No significant bundle size changes detected. 📊 Summary of Totals
|
Aamod-Dev
left a comment
There was a problem hiding this comment.
This is a great enhancement for UI robustness. Applying getUsernameFontSize in lib/svg/components/VersusPanel.tsx ensures that extremely long usernames don't break out of the SVG boundaries. The math rounding is a nice touch for cleaner SVG output. Approved!
|
🎉 Congratulations @MasterJi27! Your PR has been successfully merged. 🚀 Thank you for contributing to CommitPulse. Your work helps us build a better tool for the community.
Keep building! 💻✨ |
Fixes #5248