fix(web): prevent composer label measurement update loops - #13106
jorda0mega wants to merge 1 commit into
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: pingdotgg/t3code/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe change extracts context strip label-width measurement into ChangesContext strip width measurement
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The reported scrolling measurement loop is addressed, with focused coverage and no identified regression. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
Superseded by #13555 (merged) — same composer/BranchToolbar label measurement loop fix (sum MiddleTruncate text widths instead of max scrollWidth). |
Why the change
Scrolling can collapse the composer and trigger React error
#185because split branch names are measured differently when their labels collapse, so this keeps their full measured width stable.Special things to note
Change outline
Before recording:
before.mp4
After recording:
after.mp4
Summary by CodeRabbit
Bug Fixes
Tests