File tree 2 files changed +10
-4
lines changed
src/shared/components/challenge-listing/ChallengeCard/Prize
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -19,16 +19,16 @@ export default function Prize({
19
19
withoutTooltip,
20
20
} ) {
21
21
const component = (
22
- < div >
22
+ < div styleName = "prize-wrapper" >
23
+ < div styleName = "label" >
24
+ { label }
25
+ </ div >
23
26
< div styleName = "prize" >
24
27
< span styleName = "symbol" >
25
28
{ prizeUnitSymbol }
26
29
</ span >
27
30
{ totalPrize . toLocaleString ( ) }
28
31
</ div >
29
- < div styleName = "label" >
30
- { label }
31
- </ div >
32
32
</ div >
33
33
) ;
34
34
if ( withoutTooltip ) return component ;
Original file line number Diff line number Diff line change 1
1
@import " ~styles/mixins" ;
2
2
3
+ .prize-wrapper {
4
+ display : flex ;
5
+ flex-direction : column ;
6
+ }
7
+
3
8
.label {
4
9
cursor : default ;
5
10
padding : 0 (2 * $base-unit );
6
11
background : $tc-gray-neutral-light ;
7
12
font-size : 10px ;
8
13
color : $tc-gray-70 ;
9
14
white-space : nowrap ;
15
+ order : 2 ;
10
16
11
17
@include xs-to-sm {
12
18
display : inline-block ;
You can’t perform that action at this time.
0 commit comments