PrepEdge-AI icon indicating copy to clipboard operation
PrepEdge-AI copied to clipboard

💡 Feature Request: Add "Go to Top" Button

Open raghavendra-24 opened this issue 1 year ago • 1 comments

🔍 Description:

The current UI lacks a scroll-to-top button. On long pages like the homepage or dashboard, users must manually scroll up, which is inefficient.

✅ Expected Behavior:

Once the user scrolls past a certain point (e.g., 300px), a floating button should appear at the bottom-right corner. Clicking it scrolls smoothly to the top.

🎯 Why It Matters:

  • Enhances navigation
  • Improves user experience for mobile and desktop users
  • Follows best practices in long-scroll web apps

🛠 Suggested Implementation:

  • Use window.scrollTo({ top: 0, behavior: 'smooth' })
  • Add conditionally rendered button based on scrollY in a useEffect

@CoderUzumaki I would love to work on this issue. Kindly assign it to me so I can start contributing 🚀.

Thank you!

Raghavendra Raju (GSSoC'25 Contributor)

raghavendra-24 avatar Aug 01 '25 05:08 raghavendra-24

#20 Another duplicate issue. If you want to contribute on it, please check in with already assigned contributor to know their status. Please avoid duplicate issues.

RedK22 avatar Aug 01 '25 07:08 RedK22