game cancelled
This commit is contained in:
@@ -434,6 +434,10 @@
|
||||
&.winner {
|
||||
animation: win 2s ease-in-out 0s 1;
|
||||
}
|
||||
|
||||
.cancelled {
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
|
||||
.tutorial {
|
||||
|
||||
@@ -80,6 +80,12 @@ class Faceoff extends preact.Component {
|
||||
}
|
||||
function faceoffText() {
|
||||
if (!instance.winner) {
|
||||
if (instance.phase === 'Finished') return (
|
||||
<div class="faceoff-text">
|
||||
<div class="cancelled"> game cancelled </div>
|
||||
</div>
|
||||
);
|
||||
|
||||
return (
|
||||
<div class="faceoff-text">
|
||||
<div class="opponent-text"> {otherTeam.name} </div>
|
||||
|
||||
Reference in New Issue
Block a user