-
-
Notifications
You must be signed in to change notification settings - Fork 1k
fix: nav flyout menu issue #4675
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for asyncapi-website ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
WalkthroughAdds internal scrolling to FlyoutMenu: measures content height vs 80% of viewport, sets a Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🔇 Additional comments (3)
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 |
|
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-4675--asyncapi-website.netlify.app/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (1)
components/navigation/FlyoutMenu.tsx (1)
33-38: Good approach with conditional scroll styling.The ref placement and conditional application of
max-h-[70vh] overflow-y-autocorrectly implements the scroll behavior to prevent the flyout from breaking the screen layout. This addresses the reported bug effectively.Note on quote style changes (lines 28-37): The changes from single quotes to double quotes are purely stylistic and not necessary for fixing the bug. While consistency is good, these changes add noise to the diff.
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
components/navigation/FlyoutMenu.tsx(2 hunks)
⏰ Context from checks skipped due to timeout of 180000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
- GitHub Check: Redirect rules - asyncapi-website
- GitHub Check: Header rules - asyncapi-website
- GitHub Check: Pages changed - asyncapi-website
- GitHub Check: Lighthouse CI
🔇 Additional comments (2)
components/navigation/FlyoutMenu.tsx (2)
1-1: LGTM!The additional React hooks are correctly imported and necessary for the scroll detection logic.
15-16: LGTM!The ref and state declarations are correctly typed and initialized.
fixes #4674

Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.