Skip to content

Comments

Add scroll-to-top button and scroll restoration#18

Open
tanush-space wants to merge 1 commit intoDoraDAO:mainfrom
tanush-space:add-to-top-button
Open

Add scroll-to-top button and scroll restoration#18
tanush-space wants to merge 1 commit intoDoraDAO:mainfrom
tanush-space:add-to-top-button

Conversation

@tanush-space
Copy link

Contributor Name : Tanush Gupta
Issue Number: #14

This PR improves page navigation on long layouts.

Added:

  • Floating scroll-to-top button that appears after scrolling
  • Automatic scroll reset when navigating between routes

Why:

Currently, users landing on a new page may start mid-scroll depending on previous position.
The button also helps quickly return to the top on content-heavy pages.

Implementation:

  • Two isolated components: ScrollToTop and ScrollRestoration
  • No external dependencies
  • No impact on existing logic or layout

Tested locally across all routes.

###Before:
image

###After:
image

Happy to adjust styling or threshold if needed.

@vercel
Copy link

vercel bot commented Feb 15, 2026

@tanush-space is attempting to deploy a commit to the denshaw's projects Team on Vercel.

A member of the Team first needs to authorize it.

@tanush-space
Copy link
Author

Hey @ruhilmansi @connectdoradao! 👋
I’ve pushed a PR to add scroll to top button. Would love it if you could review it, feel free to suggest changes if needed.
And if everything looks good, please do merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant