File tree Expand file tree Collapse file tree 6 files changed +15
-6
lines changed Expand file tree Collapse file tree 6 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @web3-onboard/core" ,
3
- "version" : " 2.2.4 " ,
3
+ "version" : " 2.2.5 " ,
4
4
"scripts" : {
5
5
"build" : " rollup -c" ,
6
6
"dev" : " rollup -c -w" ,
Original file line number Diff line number Diff line change 58
58
59
59
@media all and (max-width : 520px ) {
60
60
.relative {
61
- width : calc ( 100 % - 1 rem ) ;
61
+ width : 100 vw ;
62
62
}
63
63
64
64
.modal-overflow {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @web3-onboard/magic" ,
3
- "version" : " 2.0.2 " ,
3
+ "version" : " 2.0.3 " ,
4
4
"description" : " Magic module for Onboard.js" ,
5
5
"scripts" : {
6
6
"build" : " rollup -c" ,
Original file line number Diff line number Diff line change @@ -59,8 +59,6 @@ function magic(options: MagicInitOptions): WalletInit {
59
59
}
60
60
}
61
61
62
- if ( userEmail ) loggedIn = await loginWithEmail ( userEmail )
63
-
64
62
const handleLogin = async ( ) => {
65
63
loggedIn = await loginModal ( {
66
64
walletName : walletName ,
@@ -77,6 +75,7 @@ function magic(options: MagicInitOptions): WalletInit {
77
75
const patchedProvider = createEIP1193Provider ( magicProvider , {
78
76
eth_requestAccounts : async ( { baseRequest } ) => {
79
77
try {
78
+ if ( userEmail ) loggedIn = await loginWithEmail ( userEmail )
80
79
if ( ! loggedIn ) await handleLogin ( )
81
80
const accounts = await baseRequest ( { method : 'eth_accounts' } )
82
81
activeAddress = accounts [ 0 ]
Original file line number Diff line number Diff line change 208
208
var (--onboard-font-family-light , var (--font-family-light ))
209
209
);
210
210
}
211
+
212
+ @media all and (max-width : 520px ) {
213
+ .onboard-magic-login-modal {
214
+ min-width : 22rem ;
215
+ width : 98vw ;
216
+ }
217
+ input [type = ' text' ] {
218
+ width : 21rem ;
219
+ }
220
+ }
211
221
</style >
212
222
213
223
<div class =" container" >
Original file line number Diff line number Diff line change 22
22
},
23
23
"dependencies" : {
24
24
"@web3-onboard/common" : " ^2.0.6" ,
25
- "@web3-onboard/core" : " ^2.2.4 "
25
+ "@web3-onboard/core" : " ^2.2.5 "
26
26
},
27
27
"peerDependencies" : {
28
28
"react" : " ^17.0.2"
You can’t perform that action at this time.
0 commit comments