Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v3] Mobile and other improvements #1237

Merged
merged 8 commits into from
Jul 31, 2023
Merged

[v3] Mobile and other improvements #1237

merged 8 commits into from
Jul 31, 2023

Conversation

xzilja
Copy link
Contributor

@xzilja xzilja commented Jul 31, 2023

Changes

  • Keyboard management
  • Mobile layout
  • Dependency updates
  • Balance formatting
  • Scroll locking
  • connection widget simplification

@xzilja xzilja requested a review from svenvoskamp July 31, 2023 14:04
@vercel
Copy link

vercel bot commented Jul 31, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
web3modal-gallery ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 31, 2023 2:06pm
web3modal-laboratory ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 31, 2023 2:06pm

document.head.appendChild(styleTag)
}

private onScrollUnlock() {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you will go back to the top of the page if you scroll > then open modal > then close again

Could we set the body scrollTop when closing the modal?

document.body.style.top = ${window.scrollY}px;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No need, this works as expected (same implementation as v2) you stay at the same position

@xzilja xzilja merged commit 9608dc3 into V3 Jul 31, 2023
7 checks passed
@xzilja xzilja deleted the v-3/mobile branch July 31, 2023 14:30
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