File tree 2 files changed +17
-15
lines changed
2 files changed +17
-15
lines changed Original file line number Diff line number Diff line change 2
2
// See the LICENCE file in the repository root for full licence text.
3
3
4
4
.score-player {
5
- &__mod {
6
- margin : 3 px ;
7
- font-size : 22 px ; // icon size
8
- flex : none ;
5
+ width : 250 px ;
6
+ max-width : 100 % ;
7
+ @media @desktop {
8
+ width : auto ;
9
9
}
10
10
11
11
&__mods {
12
- margin : -3 px ;
12
+ font-size : 22 px ; // icon size
13
13
display : flex ;
14
- position : absolute ;
15
- top : -5 px ;
14
+ flex-wrap : wrap ;
15
+ gap : 2 px ;
16
16
}
17
17
18
18
&__row {
29
29
grid-template-columns : max-content ;
30
30
grid-gap : 0 10px ;
31
31
}
32
+
33
+ &--score {
34
+ display : grid ;
35
+ }
32
36
}
33
37
34
38
&__rank {
50
54
&__score {
51
55
font-size : @font-size--large-4 ;
52
56
font-weight : 300 ;
53
- margin-bottom : -10 px ;
57
+ line-height : 1 ;
54
58
@media @desktop {
55
59
font-size : @font-size--extra-large ;
56
60
}
Original file line number Diff line number Diff line change @@ -28,17 +28,15 @@ export default function Player(props: Props) {
28
28
return (
29
29
< div className = 'score-player' >
30
30
< div className = 'score-player__row score-player__row--score' >
31
- < div className = 'score-player__score' >
32
- { formatNumber ( totalScore ( props . score ) ) }
33
- </ div >
34
-
35
31
< div className = 'score-player__mods' >
36
32
{ filterMods ( props . score ) . map ( ( mod ) => (
37
- < div key = { mod . acronym } className = 'score-player__mod' >
38
- < Mod mod = { mod } />
39
- </ div >
33
+ < Mod key = { mod . acronym } mod = { mod } />
40
34
) ) }
41
35
</ div >
36
+
37
+ < div className = 'score-player__score' >
38
+ { formatNumber ( totalScore ( props . score ) ) }
39
+ </ div >
42
40
</ div >
43
41
44
42
< div className = 'score-player__row score-player__row--player' >
You can’t perform that action at this time.
0 commit comments