Compare commits

..

2 Commits

Author SHA1 Message Date
1035a98eca refactor: simplify tries display by removing win/loss status
All checks were successful
Build Docker Image / build (push) Successful in 1m10s
2026-03-05 22:51:39 +01:00
df224d97bb fix: correct win count message grammar for singular and plural cases 2026-03-05 22:10:54 +01:00
2 changed files with 3 additions and 14 deletions

View File

@@ -209,7 +209,7 @@
Personnage du jour
</h1>
<p class="mt-2 text-sm text-amber-300">
{data.winCount} {data.winCount > 1 ? 'personnes' : 'personne'} ont trouvé aujourd'hui 🎉
{data.winCount} {data.winCount > 1 ? 'personnes' : 'personne'} {data.winCount > 1 ? 'ont' : 'a'} trouvé aujourd'hui 🎉
</p>
</div>
{#if hasWon}

View File

@@ -321,19 +321,8 @@
</p>
</div>
<!-- Status and Tries -->
<div class="flex flex-col items-end gap-2">
<div class="flex items-center gap-2">
{#if day.won === 1}
<span class="rounded-full bg-green-900/30 px-3 py-1 text-xs font-semibold text-green-300">
✓ Gagné
</span>
{:else}
<span class="rounded-full bg-red-900/30 px-3 py-1 text-xs font-semibold text-red-300">
✗ Perdu
</span>
{/if}
</div>
<!-- Tries -->
<div class="flex flex-col items-end">
<p class="text-xs text-slate-400">
{day.tryCount} {day.tryCount === 1 ? 'tentative' : 'tentatives'}
</p>