File tree 5 files changed +28
-5
lines changed
frontends/web/src/components
5 files changed +28
-5
lines changed Original file line number Diff line number Diff line change
1
+ .amount {
2
+ flex-shrink : 1 ;
3
+ overflow : hidden;
4
+ text-overflow : ellipsis;
5
+ }
6
+
1
7
.space {
2
8
margin-left : 0.33ch ;
3
9
}
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ export const Amount = ({
110
110
} ;
111
111
112
112
return (
113
- < span onClick = { handleClick } >
113
+ < span className = { style . amount } onClick = { handleClick } >
114
114
< FormattedAmount
115
115
amount = { amount }
116
116
unit = { unit }
Original file line number Diff line number Diff line change 8
8
display : flex;
9
9
font-variant : tabular-nums;
10
10
margin-left : auto;
11
- gap : var ( --space-eight ) ;
11
+ gap : 3 px ;
12
12
}
13
13
14
14
.txPrefix ,
15
15
.txUnit {
16
16
color : var (--color-secondary );
17
17
font-size : 14px ;
18
18
line-height : 1.285714 ;
19
+ white-space : nowrap;
19
20
}
20
21
21
22
.txConversionAmount .txUnit {
22
23
font-size : 12px ;
24
+ flex-shrink : 0 ;
23
25
}
24
26
25
27
.txSmallInlineIcon img {
Original file line number Diff line number Diff line change 63
63
line-height : 1.285714 ;
64
64
padding : 0 var (--space-quarter ) 0 48px ;
65
65
text-align : right;
66
+ white-space : nowrap;
66
67
}
67
68
@media (max-width : 560px ) {
68
69
.txAmountsColumn {
70
+ flex-shrink : 1 ;
71
+ flex-basis : 60% ;
72
+ max-width : 60% ;
69
73
padding-left : 24px ;
70
74
}
71
75
}
76
80
}
77
81
78
82
.txAmount {
83
+ align-items : baseline;
79
84
font-size : 16px ;
80
85
font-variant : tabular-nums;
86
+ gap : 3px ;
87
+ justify-content : flex-end;
81
88
line-height : 1.25 ;
82
- display : block ;
89
+ display : flex ;
83
90
padding : 3px 0 3px 0 ;
84
91
}
85
92
@media (max-width : 560px ) {
86
93
.txAmount {
87
94
padding-bottom : 4px ;
95
+ flex-shrink : 1 ;
88
96
}
89
97
}
90
98
95
103
color : var (--color-green );
96
104
}
97
105
106
+ .txUnit {
107
+ color : var (--color-secondary );
108
+ font-size : 14px ;
109
+ line-height : 1.285714 ;
110
+ }
111
+
98
112
.txNote {
99
113
color : var (--color-secondary );
100
114
display : block;
Original file line number Diff line number Diff line change @@ -160,16 +160,17 @@ const Amounts = ({
160
160
type,
161
161
} : TAmountsProps ) => {
162
162
const txTypeClass = `txAmount-${ type } ` ;
163
- const sign = getTxSign ( type ) ;
164
163
const recv = type === 'receive' ;
164
+ const displayAmount = recv ? amount . amount : deductedAmount . amount ;
165
+ const sign = displayAmount ? getTxSign ( type ) : '' ;
165
166
166
167
return (
167
168
< span className = { `${ styles . txAmountsColumn } ${ styles [ txTypeClass ] } ` } >
168
169
{ /* <data value={amount.amount}> */ }
169
170
< span className = { styles . txAmount } >
170
171
{ sign }
171
172
< Amount
172
- amount = { recv ? amount . amount : deductedAmount . amount }
173
+ amount = { displayAmount }
173
174
unit = { recv ? amount . unit : deductedAmount . unit }
174
175
/>
175
176
< span className = { styles . txUnit } >
You can’t perform that action at this time.
0 commit comments