Skip to content

Conversation

@sagarhedaoo
Copy link
Contributor

✨ Pull Request

📓 Referenced Issue

Link: #1234

Fixes: #1234

ℹ️ About the PR

I implemented the Scroll to top feature in the webview as well as in the toolbar. The Button disappears when the user is at the top of the page and when user goes down then it appears.
Upon clicking it scrolls back to the top.
Same for the toolbar button that I added/

🖼️ Testing Scenarios / Screenshots

I used command yarn test to test the code before pushing it with all the test cases passed.

Screen Recording 2024-05-30 at 2 56 04 AM

@CLAassistant
Copy link

CLAassistant commented May 30, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@manojVivek manojVivek left a comment

Choose a reason for hiding this comment

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

@sagarhedaoo Thank you so much for this contribution, just a minor change request. Looks great otherwise!

const scaledWidth = width * zoomfactor;

useEffect(() => {
const webview = ref.current;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would say, we don't need this button inside the view. We don't want to pollute the user space with the app code.

The icon in the toolbar is good enough and this just feels like a redundant cta. Can you please remove this?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Took a stab at it myself.

@manojVivek manojVivek merged commit 154f6ca into responsively-org:main Jun 7, 2024
@manojVivek
Copy link
Collaborator

@sagarhedaoo Thanks again for your effort on this! ❤️

@manojVivek
Copy link
Collaborator

@all-contributors Please add @sagarhedaoo for code.

@allcontributors
Copy link
Contributor

@manojVivek

I've put up a pull request to add @sagarhedaoo! 🎉

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

Labels

None yet

3 participants