Scroll to top using Navbar Aossie logo#1140
Scroll to top using Navbar Aossie logo#1140JaYRaNa213 wants to merge 1 commit intoAOSSIE-Org:mainfrom
Conversation
📝 WalkthroughWalkthroughThe Navbar component is enhanced with smooth scroll-to-top functionality triggered by clicking the logo and PictoPy title. A cursor-pointer class is added to the logo for improved visual affordance. The implementation prevents default navigation and uses Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 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)
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 |
|
Closing this as Unreviewed issue |
Fixes #1139
Description
Clicking the AOSSIE / PictoPy logo in the navbar should smoothly scroll the page back to the top instead of only acting as a route link.
This improves navigation UX, especially on long landing pages.
Expected Behavior
Proposed Implementation
Handle logo click in Navbar.tsx using window.scrollTo with smooth behavior.
Files Affected
video demo :
Scroll.to.top.mp4
Summary by CodeRabbit
New Features
Style