Repository navigation
Stabilize scrollbar gutter to prevent message list layout shift - #19332
Conversation
- Add `scrollbar-gutter:stable` to prevent reflow when scrollbar appears - Adjust scroll container padding to properly accommodate the scrollbar - Add 5px horizontal inset to content for alignment with composer field
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 4 remain after this review. 📝 WalkthroughWalkthroughThe native chat transcript now uses symmetric responsive horizontal padding and a stable scrollbar gutter. The inner transcript adds a 5px horizontal inset while retaining the shared maximum width. Merge Risk: ⚪ Minimal · up to This CSS-only change reserves scrollbar space and adjusts transcript insets to prevent chat layout reflow. No current merge-blocking risk is identified. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description explains the problem, solution, scope, and main implementation details. However, it does not provide the required linked issue, visual proof for this UI behavior change, or testing results. Several required checklist items remain incomplete. Resolution Add a valid linked issue after “Fixes #”. Attach before-and-after visual proof, or write
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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 |
There was a problem hiding this comment.
Important
The new left-padding calc() utilities on the scroll container generate invalid CSS, so the message list loses its left padding entirely and content will sit flush against the left edge — a visible regression in the core chat flow. Details inline; fix before merging.
Reviewed changes
- Scrollbar gutter stabilization — adds
[scrollbar-gutter:stable]to the message scroll container and reworks horizontal padding so content stays aligned with the composer column. - Content column inset — adds
px-[5px]to themax-w-4xlmessage column so messages sit slightly narrower than the input box, with a clarifiedWhycomment.
ℹ️ Missing visual proof for a UI-only change
The PR's "Visual Proof" is still TODO and the "Before/after screenshots or videos" checklist item is unchecked. This is a subtle alignment tweak that can't be validated from static review — please attach a before/after capture (or mark N/A with a reason) before merging.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Scrollbar gutter stabilization — replaced the invalid left-padding
calc()utilities with[scrollbar-gutter:stable_both-edges]plus symmetricpx-3 sm:px-4, reserving the gutter on both edges so themax-w-4xlcolumn stays centered without hardcoding the scrollbar width.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

Problem
The native chat message list experiences layout shift when the scrollbar appears and disappears, causing content to reflow horizontally. This happens because the scrollbar takes up space, changing the available width.
Solution
Use CSS
scrollbar-gutter: stableto reserve scrollbar space consistently, preventing layout shifts. Adjust padding to account for the reserved space while maintaining alignment with the composer field.ELI5
When scrolling messages, the scrollbar appears/disappears on the right, making text shift left and right. We now reserve that space always, so nothing moves.
What Changed
[scrollbar-gutter:stable]to scroll container to reserve scrollbar spacepx-3/sm:px-4topr-3/pl-[calc(theme(spacing.3)+12px)]and responsivesm:pr-4/sm:pl-[calc(theme(spacing.4)+12px)]to account for gutterpx-[5px]horizontal inset to message content for slight narrowing vs. composer widthWhy
Layout shifts harm UX and break selections.
scrollbar-gutter: stableis the modern CSS standard for this problem.Linked Issue
N/A
Visual Proof
TODO: Add before/after video showing scrolling behavior without layout shift
Testing
Review
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdNotes
CSS change only; no platform, SSH, or compatibility impact.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)