Prevent settings layout shifts with scrollbar gutters#2960
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
ApprovabilityVerdict: Approved CSS-only changes adding scrollbar gutter utility classes to prevent layout shifts. No runtime logic affected, purely visual/layout improvements. You can customize Macroscope's approvability policy. Learn more. |
|
🚀 Expo continuous deployment is ready!
|
Summary
scrollbar-gutter-bothto the shared settings page container so centered settings content stays visually centered when the scrollbar appears.scrollbar-gutter-stableutility.Testing
vp checkpnpm lintvp run typecheckvp run --filter @t3tools/web buildgit diff --checkNote
Low Risk
CSS-only layout tweaks on settings and scroll components with no security or data impact.
Overview
Reserves horizontal space for scrollbars so settings pages and scroll areas do not jump horizontally when overflow scrollbars appear.
SettingsPageContainernow usesscrollbar-gutter-bothon its main scroll column so the centeredmax-w-3xlblock stays visually centered. The sharedScrollAreaviewport swaps the old arbitrary[scrollbar-gutter:stable]class for the Tailwind 4.3scrollbar-gutter-stableutility whenscrollbarGutteris enabled.Reviewed by Cursor Bugbot for commit 3598646. Bugbot is set up for automated code reviews on this repo. Configure here.