Skip to content

Commit 4ecadee

Browse files
committed
Fixes #29
1 parent ec120c2 commit 4ecadee

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

lucky7-app/frontend/src/app/components/GameScreen.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -482,9 +482,7 @@ export default function GameScreen({ players: initialPlayers, rules, onEnd }: Ga
482482
looserProlongations > 0
483483
? ` (+${looserProlongations} prolongation${looserProlongations > 1 ? 's' : ''})`
484484
: '';
485-
msgs.push(
486-
`💀 ${looserPlayers[0].name} boit ${drinks} ${drinks > 1 ? 's' : ''}${extra}`
487-
);
485+
msgs.push(`💀 ${looserPlayers[0].name} boit ${drinks} ${drinks > 1 ? 's' : ''}${extra}`);
488486
}
489487

490488
// Double — optionnel, suspendu pendant les prolongations (déjà géré : on affiche à la fin)
@@ -494,9 +492,7 @@ export default function GameScreen({ players: initialPlayers, rules, onEnd }: Ga
494492
.forEach(s => {
495493
const diceVal = s.dice1;
496494
if (diceVal === 1) {
497-
msgs.push(
498-
`🎲 ${s.player.name} — Double 1 : distribue 1 ou fait relancer un joueur`
499-
);
495+
msgs.push(`🎲 ${s.player.name} — Double 1 : distribue 1 ou fait relancer un joueur`);
500496
} else {
501497
msgs.push(
502498
`🎲 ${s.player.name} — Double ${diceVal} : distribue ${diceVal} ${diceVal > 1 ? 's' : ''}`

lucky7-app/frontend/src/app/components/SingleDeviceLobby.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ function RulesConfigDialog({
158158
))}
159159
<div className="flex items-center gap-3 rounded-xl px-3 py-3 bg-destructive/5 opacity-50">
160160
<div className="flex-1 min-w-0">
161-
<p className="text-sm font-medium leading-tight text-destructive">{HARD_RULE.label}</p>
161+
<p className="text-sm font-medium leading-tight text-destructive">
162+
{HARD_RULE.label}
163+
</p>
162164
<p className="text-xs text-destructive/70 mt-0.5">{HARD_RULE.desc}</p>
163165
</div>
164166
<div className="relative shrink-0 w-11 h-6 rounded-full bg-destructive/20">

0 commit comments

Comments
 (0)