fix: sidebar layout glitch by adding scrollbar-gutter#396
fix: sidebar layout glitch by adding scrollbar-gutter#396MOHIT-SOLANKII wants to merge 1 commit intoappwrite:mainfrom
Conversation
|
Pink (appwrite/pink)Project ID: Tip Appwrite has crossed the 50K GitHub stars milestone with hundreds of active contributors |
WalkthroughA single CSS property modification to the side navigation component's main block. The Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |

What does this PR do?
Problem :
There is a layout glitch in the documentation sidebar where expanding sections (such as "Foundations" or "Components") causes a vertical scrollbar to appear, which shifts the content
horizontally.Solution :
I added
scrollbar-gutter: stable; to the.side-nav-mainclass inpackages/ui/src/7-components/_side-nav.scss. This ensures that space for the scrollbar is always reserved, preventing jarring layout jumps when the scrollbar toggles visibility.Test Plan
Verified manually on the local development environment:
Related PRs and Issues
N/A
Have you read the Contributing Guidelines on issues?
Yes
Initial Behaviour
Recording.2026-01-20.223241.mp4
Current Behaviour after setting
scrollbar-gutter: stable; (Horizontal spacing remains constant)Recording.2026-01-20.223644.mp4
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.