fix(desktop): add visual gap between line number columns in inline diff#1019
Conversation
Dynamically calculate lineNumbersMinChars based on max line count plus 1 to create visual separation between original and modified line numbers.
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThis PR introduces a utility function Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Poem
✨ Finishing touches
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 |
- Simplify algorithm using String().length instead of Math.log10 - Extract to dedicated utils folder with co-located tests - Add comprehensive test coverage for edge cases
🧹 Preview Cleanup CompleteThe following preview resources have been cleaned up:
Thank you for your contribution! 🎉 |
Summary
lineNumbersMinCharsbased on file contentTest plan
Summary by CodeRabbit
New Features
Tests
✏️ Tip: You can customize this high-level summary in your review settings.