Skip to content

Fix scroll to top button issue on resources page#16

Open
Emmanuel-Olusegun1 wants to merge 1 commit into
dssvjit:mainfrom
Emmanuel-Olusegun1:main
Open

Fix scroll to top button issue on resources page#16
Emmanuel-Olusegun1 wants to merge 1 commit into
dssvjit:mainfrom
Emmanuel-Olusegun1:main

Conversation

@Emmanuel-Olusegun1

Copy link
Copy Markdown

This pull request fixes the "Back to Top" button functionality on the ResourcePage. The button now appears when the user scrolls down the page and scrolls smoothly to the top when clicked. Additionally, the layout has been adjusted to ensure that only the content section scrolls while the sidebar remains fixed, improving the user experience when viewing long content.

@SneakyBuzZ SneakyBuzZ left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we create a seperate component called <ScrollTop/> at location :
src/components/shared/scrolltop.tsx

Also please follow our CONTRIBUTING.md

@SneakyBuzZ SneakyBuzZ left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to use scrolltotop button as another component. Then importing here works.

Also change the base from dssvjit:main to dssvjit:feature

@Emmanuel-Olusegun1

Copy link
Copy Markdown
Author

It would be good to use scrolltotop button as another component. Then importing here works.

Also change the base from dssvjit:main to dssvjit:feature

OK, will look into it

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.

2 participants