File tree Expand file tree Collapse file tree 4 files changed +30
-5
lines changed Expand file tree Collapse file tree 4 files changed +30
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @web3-onboard/core" ,
3
- "version" : " 2.2.6 " ,
3
+ "version" : " 2.2.7 " ,
4
4
"scripts" : {
5
5
"build" : " rollup -c" ,
6
6
"dev" : " rollup -c -w" ,
Original file line number Diff line number Diff line change 15
15
16
16
<script lang =" ts" >
17
17
import { fade } from ' svelte/transition'
18
+ import { onDestroy , onMount } from ' svelte'
18
19
20
+ const body = document .body
21
+ onMount (() => {
22
+ window .addEventListener (
23
+ ' scroll' ,
24
+ () => {
25
+ document .documentElement .style .setProperty (
26
+ ' --scroll-y' ,
27
+ ` ${window .scrollY }px `
28
+ )
29
+ },
30
+ { passive: true }
31
+ )
32
+ const scrollY =
33
+ document .documentElement .style .getPropertyValue (' --scroll-y' )
34
+ body .style .position = ' fixed'
35
+ body .style .top = ` -${scrollY } `
36
+ })
37
+
38
+ onDestroy (() => {
39
+ const scrollY = body .style .top
40
+ body .style .position = ' '
41
+ body .style .top = ' '
42
+ window .scrollTo (0 , parseInt (scrollY || ' 0' ) * - 1 )
43
+ })
19
44
export let close: () => void
20
45
</script >
21
46
48
73
.modal-overflow {
49
74
overflow : hidden ;
50
75
}
51
-
76
+
52
77
.modal-styling {
53
78
border-radius : var (--onboard-modal-border-radius , var (--border-radius-1 ));
54
79
box-shadow : var (--onboard-modal-box-shadow , var (--box-shadow-0 ));
Original file line number Diff line number Diff line change 22
22
"webpack-dev-server" : " 4.7.4"
23
23
},
24
24
"dependencies" : {
25
- "@web3-onboard/core" : " ^2.2.3 " ,
25
+ "@web3-onboard/core" : " ^2.2.7 " ,
26
26
"@web3-onboard/fortmatic" : " ^2.0.2" ,
27
27
"@web3-onboard/gnosis" : " ^2.0.1" ,
28
28
"@web3-onboard/injected-wallets" : " ^2.0.5" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @web3-onboard/react" ,
3
- "version" : " 2.1.5 " ,
3
+ "version" : " 2.1.6 " ,
4
4
"description" : " Collection of React Hooks for web3-onboard" ,
5
5
"module" : " dist/index.js" ,
6
6
"browser" : " dist/index.js" ,
22
22
},
23
23
"dependencies" : {
24
24
"@web3-onboard/common" : " ^2.0.7" ,
25
- "@web3-onboard/core" : " ^2.2.5 "
25
+ "@web3-onboard/core" : " ^2.2.7 "
26
26
},
27
27
"peerDependencies" : {
28
28
"react" : " ^17.0.2"
You can’t perform that action at this time.
0 commit comments