Skip to content

Commit b82bdc8

Browse files
authored
Merge pull request #3979 from Emurgo/fix/YOEXT-1974
fix: tx review wallet info issues
2 parents 9348ba2 + 45b4242 commit b82bdc8

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed

packages/yoroi-extension/app/UI/features/transaction-review/common/AssetCarousel/AssetCarousel.tsx

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,17 @@ export const AssetCarousel = ({ data }) => {
2222
return (
2323
<Box height="40px">
2424
<Carousel
25+
containerProps={{
26+
style: {
27+
display: 'flex',
28+
justifyContent: 'flex-start',
29+
width: '100%',
30+
}
31+
}}
2532
activeSlideIndex={activeSlideIndex}
2633
onRequestChange={setActiveSlideIndex}
27-
itemsToShow={4}
28-
itemsToScroll={4}
34+
itemsToShow={5}
35+
itemsToScroll={3}
2936
forwardBtnProps={{
3037
style: {
3138
alignSelf: 'center',
@@ -70,26 +77,26 @@ export const AssetCarousel = ({ data }) => {
7077
{data &&
7178
data.map(token => (
7279
<Box
73-
style={{
74-
width: 50,
75-
height: 50,
80+
sx={{
81+
width: 48,
82+
height: 40,
7683
backgroundColor: 'transparent',
77-
marginRight: '8px',
7884
padding: '0px',
7985
position: 'relative',
8086
}}
8187
>
8288
<Box zIndex={1}>
8389
<img
84-
width="48px"
85-
height="48px"
90+
width="40px"
91+
height="40px"
92+
style={{borderRadius: '8px'}}
8693
src={token.info.image}
8794
onError={(e: any) => {
8895
e.target.src = defaultImage;
8996
}}
9097
/>
9198
</Box>
92-
<Box zIndex={20} sx={{ position: 'absolute', width: '100%', height: '100%' }} />
99+
<Box zIndex={20} sx={{ position: 'absolute', width: '100%', height: '100%'}} />
93100
</Box>
94101
))}
95102
</Carousel>

packages/yoroi-extension/app/UI/features/transaction-review/useCases/WalletInfo/WalletInfoSection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ const WalletAssetsSection = ({ data, label }) => {
108108
return (
109109
<Stack
110110
direction="column"
111-
height="160px"
111+
height="152px"
112112
width="233px"
113-
sx={{ border: '1px solid gray', borderRadius: '8px', position: 'relative' }}
113+
sx={{ border: '1px solid', borderColor: 'ds.gray_200', borderRadius: '8px', position: 'relative' }}
114114
p="16px"
115115
gap="16px"
116116
>

0 commit comments

Comments
 (0)