feat: Add scroll-to-top behavior on navbar logo click #1139#1142
feat: Add scroll-to-top behavior on navbar logo click #1139#1142pranitaurlam wants to merge 1 commit intoAOSSIE-Org:mainfrom
Conversation
Clicking the AOSSIE/PictoPy logo in the navbar now smoothly scrolls the page back to the top instead of acting as a route link. - Added onClick handler to logo image Link - Added onClick handler to PictoPy text Link - Uses window.scrollTo with smooth behavior Fixes AOSSIE-Org#1139
📝 WalkthroughWalkthroughAdds onClick handlers to the navbar logo and brand text links that invoke smooth scrolling to the page top via Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Important Action Needed: IP Allowlist UpdateIf your organization protects your Git platform with IP whitelisting, please add the new CodeRabbit IP address to your allowlist:
Reviews will stop working after February 8, 2026 if the new IP is not added to your allowlist. 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 |
|
Hi @rahulharpal1603, fixes: #1139 |
Description
Clicking the AOSSIE/PictoPy logo in the navbar now smoothly scrolls the page back to the top instead of only acting as a route link.
This improves navigation UX, especially on long landing pages.
Changes Made
onClickhandler to the logo image Link componentonClickhandler to the PictoPy text Link componentwindow.scrollTo({ top: 0, behavior: 'smooth' })Expected Behavior
Files Affected
Fixes #1139
Summary by CodeRabbit