Skip to content

Commit

Permalink
Fix the connect modal getting covered by the bottom bar (#2057)
Browse files Browse the repository at this point in the history
* fix the connect modal being covered by the bottom bar

* pump the package version

* feat: remove .mobile-safari class

* bump packages' version

* bump the version of @web3-onboard/core in other packages

---------

Co-authored-by: Adam Carpenter <adamcarpenter86@gmail.com>
  • Loading branch information
mhughdo and Adamj1232 authored Mar 4, 2024
1 parent 5b52b93 commit ca2b510
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 19 deletions.
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/core",
"version": "2.21.2",
"version": "2.21.3-alpha.1",
"description": "Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardized spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
"keywords": [
"Ethereum",
Expand Down
11 changes: 1 addition & 10 deletions packages/core/src/views/connect/Index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -424,10 +424,6 @@
scrollContainer && scrollContainer.scrollTo(0, 0)
}
const isSafariMobile =
device.type === 'mobile' &&
device.browser.name &&
device.browser.name === 'Safari'
</script>

<style>
Expand Down Expand Up @@ -532,11 +528,6 @@
.scroll-container::-webkit-scrollbar {
display: none; /* Chrome, Safari and Opera */
}
.mobile-safari {
/* Handles for Mobile Safari's floating Address Bar
covering the bottom of the connect modal **/
padding-bottom: 80px;
}
@media all and (min-width: 768px) {
.container {
Expand All @@ -560,7 +551,7 @@

{#if !autoSelect.disableModals}
<Modal close={!connect.disableClose && close}>
<div class="container" class:mobile-safari={isSafariMobile}>
<div class="container">
{#if connect.showSidebar}
<Sidebar step={$modalStep$} />
{/if}
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/views/shared/Modal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
.full-screen-background {
width: 100vw;
height: 100vh;
height: 100dvh;
}
.max-height {
Expand Down
4 changes: 2 additions & 2 deletions packages/demo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "demo",
"version": "2.0.9",
"version": "2.0.10",
"devDependencies": {
"assert": "^2.0.0",
"browserify-zlib": "^0.2.0",
Expand Down Expand Up @@ -33,7 +33,7 @@
"@web3-onboard/capsule": "2.0.1",
"@web3-onboard/cede-store": "^2.2.0",
"@web3-onboard/coinbase": "^2.2.6",
"@web3-onboard/core": "^2.21.2",
"@web3-onboard/core": "^2.21.3-alpha.1",
"@web3-onboard/dcent": "^2.2.7",
"@web3-onboard/enkrypt": "^2.0.3",
"@web3-onboard/fortmatic": "^2.0.18",
Expand Down
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/react",
"version": "2.8.13",
"version": "2.8.14-alpha.1",
"description": "A collection of React hooks for integrating Web3-Onboard in to React and Next.js projects. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
"keywords": [
"Ethereum",
Expand Down Expand Up @@ -62,7 +62,7 @@
},
"dependencies": {
"@web3-onboard/common": "^2.3.3",
"@web3-onboard/core": "^2.21.2",
"@web3-onboard/core": "^2.21.3-alpha.1",
"use-sync-external-store": "1.0.0"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/solid/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/solid",
"version": "2.0.0",
"version": "2.0.1-alpha.1",
"description": "A collection of solid Composables for integrating Web3-Onboard in to a Solid project. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardized spec compliant web3 providers for all supported wallets, modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
"keywords": [
"Ethereum",
Expand Down Expand Up @@ -63,7 +63,7 @@
},
"dependencies": {
"@web3-onboard/common": "^2.3.3",
"@web3-onboard/core": "^2.21.0",
"@web3-onboard/core": "^2.21.3-alpha.1",
"solid-js": "^1.8.1"
}
}
4 changes: 2 additions & 2 deletions packages/vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/vue",
"version": "2.7.12",
"version": "2.7.13-alpha.1",
"description": "A collection of Vue Composables for integrating Web3-Onboard in to a Vue or Nuxt project. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardized spec compliant web3 providers for all supported wallets, modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
"keywords": [
"Ethereum",
Expand Down Expand Up @@ -62,7 +62,7 @@
"@vueuse/core": "^8.4.2",
"@vueuse/rxjs": "^8.2.0",
"@web3-onboard/common": "^2.3.3",
"@web3-onboard/core": "^2.21.2",
"@web3-onboard/core": "^2.21.3-alpha.1",
"vue-demi": "^0.12.4"
},
"peerDependencies": {
Expand Down

0 comments on commit ca2b510

Please sign in to comment.