File tree Expand file tree Collapse file tree 2 files changed +8
-18
lines changed Expand file tree Collapse file tree 2 files changed +8
-18
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,9 @@ object mine:
39
39
c.destUserId.map { destId =>
40
40
div(cls := " waiting" )(
41
41
userIdLink(destId.some, cssClass = " target" .some),
42
- if c.unlimited || c.daysPerTurn != none then
43
- div(cls := " correspondence-waiting" )(
44
- p(cls := " challenge-successful" )(" Challenge sent" ),
45
- p(" Challenge can be canceled in the sword menu" )
46
- )
42
+ if ! c.hasClock then
43
+ div(cls := " correspondence-waiting text" , dataIcon := licon.Checkmark ):
44
+ " Challenge sent"
47
45
else spinner,
48
46
p(trans.waitingForOpponent())
49
47
)
Original file line number Diff line number Diff line change 62
62
}
63
63
64
64
.correspondence-waiting {
65
- padding : 15px ;
66
- border-radius : 8px ;
67
- position : relative ;
68
- }
69
-
70
- .challenge-successful ::before {
71
- content : ' \2714 ' ;
72
- font-size : 1.2em ;
73
- color : green ;
74
- }
75
-
76
- .correspondence-waiting > p {
77
- margin-bottom : 0.5em ;
65
+ font-size : 1.5em ;
66
+ margin : 2em auto ;
67
+ & ::before {
68
+ color : $c-good ;
69
+ }
78
70
}
79
71
}
80
72
You can’t perform that action at this time.
0 commit comments