File tree 2 files changed +14
-0
lines changed 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @phantom/wallet-sdk " : patch
3
+ ---
4
+
5
+ Add paddingBottom and paddingRight configuration options
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ export type CreatePhantomConfig = Partial<{
4
4
zIndex : number ;
5
5
hideLauncherBeforeOnboarded : boolean ;
6
6
colorScheme : string ;
7
+ paddingBottom : number ;
8
+ paddingRight : number ;
7
9
} > ;
8
10
9
11
export function createPhantom ( config : CreatePhantomConfig = { } ) {
@@ -20,6 +22,13 @@ export function createPhantom(config: CreatePhantomConfig = {}) {
20
22
) ;
21
23
if ( config . colorScheme )
22
24
sdkURL . searchParams . append ( "colorScheme" , config . colorScheme . toString ( ) ) ;
25
+ if ( config . paddingBottom )
26
+ sdkURL . searchParams . append (
27
+ "paddingBottom" ,
28
+ config . paddingBottom . toString ( ) ,
29
+ ) ;
30
+ if ( config . paddingRight )
31
+ sdkURL . searchParams . append ( "paddingRight" , config . paddingRight . toString ( ) ) ;
23
32
24
33
scriptTag . setAttribute ( "type" , "module" ) ;
25
34
scriptTag . setAttribute ( "src" , sdkURL . toString ( ) ) ;
You can’t perform that action at this time.
0 commit comments