File tree Expand file tree Collapse file tree 5 files changed +46
-10
lines changed
packages/thirdweb/src/react/web/ui Expand file tree Collapse file tree 5 files changed +46
-10
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " thirdweb " : patch
3
+ ---
4
+
5
+ Fix Wallet switcher icon position in wallet details modal
Original file line number Diff line number Diff line change 6
6
PaperPlaneIcon ,
7
7
PinBottomIcon ,
8
8
PlusIcon ,
9
- ShuffleIcon ,
10
9
TextAlignJustifyIcon ,
11
10
} from "@radix-ui/react-icons" ;
12
11
import { useQuery } from "@tanstack/react-query" ;
@@ -79,6 +78,7 @@ import { CoinsIcon } from "./icons/CoinsIcon.js";
79
78
import { FundsIcon } from "./icons/FundsIcon.js" ;
80
79
import { GenericWalletIcon } from "./icons/GenericWalletIcon.js" ;
81
80
import { OutlineWalletIcon } from "./icons/OutlineWalletIcon.js" ;
81
+ import { ShuffleIconLucide } from "./icons/ShuffleIconLucide.js" ;
82
82
import { SmartWalletBadgeIcon } from "./icons/SmartAccountBadgeIcon.js" ;
83
83
import { getConnectLocale } from "./locale/getConnectLocale.js" ;
84
84
import type { ConnectLocale } from "./locale/types.js" ;
@@ -344,15 +344,25 @@ function DetailsModal(props: {
344
344
< IconButton
345
345
style = { {
346
346
position : "absolute" ,
347
- top : ` ${ spacing . lg } ` ,
348
- left : ` ${ spacing . sm } ` ,
349
- padding : "3px " ,
347
+ top : spacing . lg ,
348
+ left : spacing . lg ,
349
+ transform : "translateX(-6px) " ,
350
350
} }
351
351
onClick = { ( ) => {
352
352
setScreen ( "wallet-manager" ) ;
353
353
} }
354
354
>
355
- < ShuffleIcon width = { iconSize . md } height = { iconSize . md } />
355
+ < div
356
+ style = { {
357
+ width : `${ iconSize . md } px` ,
358
+ height : `${ iconSize . md } px` ,
359
+ display : "flex" ,
360
+ alignItems : "center" ,
361
+ justifyContent : "center" ,
362
+ } }
363
+ >
364
+ < ShuffleIconLucide size = "20" />
365
+ </ div >
356
366
</ IconButton >
357
367
358
368
< Container px = "lg" flex = "column" center = "x" >
Original file line number Diff line number Diff line change
1
+ import type { IconFC } from "./types.js" ;
2
+
3
+ export const ShuffleIconLucide : IconFC = ( props ) => {
4
+ return (
5
+ < svg
6
+ xmlns = "http://www.w3.org/2000/svg"
7
+ width = { props . size }
8
+ height = { props . size }
9
+ viewBox = "0 0 24 24"
10
+ fill = "none"
11
+ stroke = "currentColor"
12
+ strokeWidth = "2"
13
+ strokeLinecap = "round"
14
+ strokeLinejoin = "round"
15
+ role = "presentation"
16
+ >
17
+ < path d = "M2 18h1.4c1.3 0 2.5-.6 3.3-1.7l6.1-8.6c.7-1.1 2-1.7 3.3-1.7H22" />
18
+ < path d = "m18 2 4 4-4 4" />
19
+ < path d = "M2 6h1.9c1.5 0 2.9.9 3.6 2.2" />
20
+ < path d = "M22 18h-5.9c-1.3 0-2.6-.7-3.3-1.8l-.5-.8" />
21
+ < path d = "m18 14 4 4-4 4" />
22
+ </ svg >
23
+ ) ;
24
+ } ;
Original file line number Diff line number Diff line change @@ -138,10 +138,7 @@ export const CrossContainer = /* @__PURE__ */ StyledDiv({
138
138
position : "absolute" ,
139
139
top : spacing . lg ,
140
140
right : spacing . lg ,
141
- transform : "translateX(15%)" ,
142
- [ media . mobile ] : {
143
- right : spacing . md ,
144
- } ,
141
+ transform : "translateX(6px)" ,
145
142
} ) ;
146
143
147
144
const modalAnimationDesktop = keyframes `
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ export const IconButton = /* @__PURE__ */ StyledButton((_) => {
141
141
display : "inline-flex" ,
142
142
alignItems : "center" ,
143
143
justifyContent : "center" ,
144
- borderRadius : radius . md ,
144
+ borderRadius : radius . sm ,
145
145
WebkitTapHighlightColor : "transparent" ,
146
146
color : theme . colors . secondaryIconColor ,
147
147
padding : "2px" ,
You can’t perform that action at this time.
0 commit comments