Some design fixes
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
{player.points}
|
||||
{/if}
|
||||
</td>
|
||||
<td class="text-end whitespace-nowrap">{player.name}</td>
|
||||
<td class="pe-4 text-end whitespace-nowrap">{player.name}</td>
|
||||
</tr>
|
||||
{/each}
|
||||
</tbody>
|
||||
|
||||
@@ -68,8 +68,6 @@
|
||||
public answerIsShowing = $state(false);
|
||||
public questionIsShowing = $state(false);
|
||||
|
||||
public pointsGivenForCurrentQuestion = $state(false);
|
||||
|
||||
constructor(game: Game) {
|
||||
this.game = game;
|
||||
}
|
||||
@@ -190,7 +188,6 @@
|
||||
} else {
|
||||
player.points += this.question.points;
|
||||
}
|
||||
this.pointsGivenForCurrentQuestion = true;
|
||||
this.sendPlayers();
|
||||
}
|
||||
|
||||
@@ -212,7 +209,6 @@
|
||||
setupGoingBack(): void {
|
||||
this.answerIsShowing = false;
|
||||
this.questionIsShowing = false;
|
||||
this.pointsGivenForCurrentQuestion = false;
|
||||
}
|
||||
|
||||
finishQuestion(): void {
|
||||
@@ -350,7 +346,7 @@
|
||||
<p>Type of question unknown</p>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="m-4 flex items-center gap-4">
|
||||
<div class="m-4 flex flex-wrap items-center gap-4">
|
||||
<button class="btn" onclick={() => gameManager.goBack()}>Zurück</button>
|
||||
{#if gameManager.questionIsShowing}
|
||||
<button class="btn" onclick={() => gameManager.hideQuestion()}
|
||||
@@ -379,7 +375,7 @@
|
||||
/>
|
||||
{/each}
|
||||
<div class="grow"></div>
|
||||
{#if gameManager.answerIsShowing && gameManager.pointsGivenForCurrentQuestion}
|
||||
{#if gameManager.answerIsShowing}
|
||||
<button class="btn" onclick={() => gameManager.finishQuestion()}
|
||||
>Abschließen</button
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user