-
-
Notifications
You must be signed in to change notification settings - Fork 53
Fix issue #766 | Multiple scrollbars fix and hover effect for collapsible navbar buttons #775
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
Conversation
|
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 eslint
docs/app/docs/layout.tsxOops! Something went wrong! :( ESLint: 8.56.0 ESLint couldn't find the config "next/core-web-vitals" to extend from. Please check that the name of the config is correct. The config "next/core-web-vitals" was referenced from the config file in "/docs/.eslintrc.json". If you still have problems, please stop by https://eslint.org/chat/help to chat with the team. WalkthroughThe pull request addresses the issue of multiple scrollbars on the documentation website by modifying layout and overflow behaviors across several components. Changes were made to the Changes
Assessment against linked issues
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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: 0
🧹 Nitpick comments (3)
docs/app/page.tsx (1)
22-24: Consider removingh-screenclass for better scroll behavior.While removing
overflow-scrollhelps fix the multiple scrollbars issue, theh-screenclass on the outer div might still cause content overflow issues. Consider using a more flexible height approach to allow content to flow naturally.- <div className='h-screen '> + <div className='min-h-screen'>docs/app/docs/layout.tsx (1)
11-11: LGTM! Good approach to handling vertical scrolling.The changes effectively address the multiple scrollbars issue by:
- Using
h-[94vh]to account for other UI elements- Using
overflow-y-scrollto explicitly handle vertical scrolling onlyConsider adding a CSS variable for the height value to make it more maintainable:
+/* In your CSS variables */ +:root { + --docs-content-height: 94vh; +} -<div data-accent-color="blue" className="flex space-x-2 w-full h-[94vh] overflow-hidden"> +<div data-accent-color="blue" className="flex space-x-2 w-full h-[var(--docs-content-height)] overflow-hidden">Also applies to: 15-15
docs/components/navigation/Navigation.js (1)
250-251: Good UX improvements for navigation.The changes enhance the navigation component by:
- Using
overflow-y-scrollfor consistent scrollbar behavior- Adding
cursor-pointerto improve button interactionConsider adding hover styles to further improve button interaction:
-<div onClick={toggleCollapse} className={`absolute right-2 top-3 cursor-pointer`}> +<div onClick={toggleCollapse} className={`absolute right-2 top-3 cursor-pointer hover:opacity-80 transition-opacity`}>
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
docs/app/docs/layout.tsx(2 hunks)docs/app/page.tsx(1 hunks)docs/components/Main/Main.js(1 hunks)docs/components/navigation/Navigation.js(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: build
🔇 Additional comments (2)
docs/components/Main/Main.js (1)
20-24: LGTM! Layout simplification improves scrolling behavior.The removal of fixed height constraints and overflow restrictions allows for more natural content flow, helping to address the multiple scrollbars issue.
docs/components/navigation/Navigation.js (1)
202-202: LGTM! Minor formatting improvement.The added space after the spread operator improves code readability.
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.
Need to redo the layout without using the h-[94vh] class
Successful Merging of this PR closes #766
Summary by CodeRabbit
Style
cursor-pointerto enhance interactive element visibilityChores
These changes focus on refining the visual layout and interaction of the application's components.