File tree 7 files changed +21
-10
lines changed
7 files changed +21
-10
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @thirdweb-dev/react " : patch
3
+ ---
4
+
5
+ connect wallet UI and text adjustments
Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ const DialogContent = styled.div<{ theme?: Theme }>`
117
117
padding-bottom: ${ spacing . xl } ;
118
118
animation: ${ modalAnimationDesktop } 200ms ease;
119
119
box-shadow: ${ shadow . lg } ;
120
+ line-height: 1;
120
121
121
122
&:focus {
122
123
outline: none;
Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ export const ConnectModal = () => {
179
179
>
180
180
< Modal
181
181
style = { {
182
- maxWidth : "450px " ,
182
+ maxWidth : "480px " ,
183
183
} }
184
184
open = { hideModal ? false : isWalletModalOpen }
185
185
setOpen = { ( value ) => {
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ export const ConnectedWalletDetails: React.FC<{
112
112
) : (
113
113
< Skeleton height = { fontSize . sm } width = "82px" />
114
114
) }
115
- < Spacer y = "xxs " />
115
+ < Spacer y = "xs " />
116
116
< WalletAddress > { shortenString ( address || "" ) } </ WalletAddress >
117
117
</ ColFlex >
118
118
@@ -367,7 +367,7 @@ const dropdownContentFade = keyframes`
367
367
` ;
368
368
369
369
const DropDownContent = styled ( DropdownMenu . Content ) < { theme ?: Theme } > `
370
- width: 340px ;
370
+ width: 360px ;
371
371
box-sizing: border-box;
372
372
max-width: 100%;
373
373
border-radius: ${ radius . lg } ;
@@ -377,16 +377,17 @@ const DropDownContent = styled(DropdownMenu.Content)<{ theme?: Theme }>`
377
377
border: 1px solid ${ ( props ) => props . theme . border . base } ;
378
378
background-color: ${ ( props ) => props . theme . bg . base } ;
379
379
z-index: 1000000;
380
+ line-height: 1;
380
381
` ;
381
382
382
383
const WalletInfoButton = styled . button < { theme ?: Theme } > `
383
384
all: unset;
384
385
background: ${ ( props ) => props . theme . bg . base } ;
385
386
border: 1px solid ${ ( props ) => props . theme . border . base } ;
386
- padding: ${ spacing . sm } ${ spacing . md } ;
387
+ padding: ${ spacing . sm } ${ spacing . sm } ;
387
388
border-radius: ${ radius . lg } ;
388
389
cursor: pointer;
389
- display: flex;
390
+ display: inline- flex;
390
391
align-items: center;
391
392
gap: ${ spacing . md } ;
392
393
box-sizing: border-box;
@@ -461,6 +462,7 @@ const MenuButton = styled.button<{ theme?: Theme }>`
461
462
color: ${ ( props ) => props . theme . text . neutral } !important;
462
463
gap: ${ spacing . sm } ;
463
464
-webkit-tap-highlight-color: transparent;
465
+ line-height: 1.3;
464
466
465
467
&:not([disabled]):hover {
466
468
transition: box-shadow 250ms ease, border-color 250ms ease;
Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ const NetworkList: React.FC<{
183
183
style = { {
184
184
display : "flex" ,
185
185
flexDirection : "column" ,
186
- gap : spacing . xxs ,
186
+ gap : spacing . xs ,
187
187
} }
188
188
>
189
189
{ chainName }
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ export const GetStartedScreen: React.FC<{
140
140
width : "100%" ,
141
141
} }
142
142
>
143
- I{ `'` } ve finished setting up my { props . walletName } mobile wallet
143
+ I{ `'` } ve finished setting up my { props . walletName } on mobile
144
144
</ HelperLink >
145
145
</ >
146
146
) }
Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ export const ScanScreen: React.FC<{
18
18
walletName : string ;
19
19
walletIconURL : string ;
20
20
} > = ( props ) => {
21
+ const walletName = props . walletName . toLowerCase ( ) . includes ( "wallet" )
22
+ ? props . walletName
23
+ : `${ props . walletName } wallet` ;
21
24
return (
22
25
< >
23
26
< BackButton
@@ -47,12 +50,12 @@ export const ScanScreen: React.FC<{
47
50
48
51
< Spacer y = "xl" />
49
52
50
- < ModalTitle > Scan with { props . walletName } wallet </ ModalTitle >
53
+ < ModalTitle > Scan with { walletName } </ ModalTitle >
51
54
< Spacer y = "md" />
52
55
53
56
< ModalDescription >
54
57
Scan this QR code with your phone < br />
55
- camera or { props . walletName } wallet to connect
58
+ camera or { walletName } to connect
56
59
</ ModalDescription >
57
60
58
61
< Spacer y = "md" />
@@ -69,7 +72,7 @@ export const ScanScreen: React.FC<{
69
72
< Spacer y = "xl" />
70
73
71
74
< LinkButton onClick = { props . onGetStarted } >
72
- { `Don't` } have { props . walletName } Wallet ?
75
+ { `Don't` } have { walletName } ?
73
76
</ LinkButton >
74
77
</ div >
75
78
</ >
You can’t perform that action at this time.
0 commit comments