fix(page): sync sidebar close animation with page content shift on viewport resize#8135
Conversation
WalkthroughThis change modifies the Page component's SCSS to synchronize sidebar animation timing with page content transitions during viewport resize by introducing main container CSS custom properties that mirror sidebar transition durations. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. No actionable comments were generated in the recent review. 🎉 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 |
|
Preview: https://pf-pr-8135.surge.sh A11y report: https://pf-pr-8135-a11y.surge.sh |
|
This PR has been automatically marked as stale because it has not had activity in the last 60 days. |
Fixes #7954
This PR fixes the responsive resize bug where, around the xl breakpoint (1200px), page content shifted before the sidebar finished closing/expanding.
Root cause was a temporary mismatch between layout/media-query changes and managed sidebar state updates during resize.
Changes in page.scss:
Sync page__main-container transition timing with sidebar motion timing.
Prevent transient stale “expanded” sidebar behavior below xl during managed-sidebar resize updates.
Remove the visual lag/jump so sidebar and main content stay in sync while resizing.
Assisted By : Github copilot
Summary by CodeRabbit
Style