feat(client_web): checkers slide animation

This commit is contained in:
Henri Bourcereau 2026-04-09 20:17:21 +02:00
parent e7c0a390e3
commit 4a07c41f7c
5 changed files with 151 additions and 33 deletions

View file

@ -119,6 +119,8 @@ pub fn GameScreen(state: GameUiState) -> impl IntoView {
let is_double_dice = dice.0 == dice.1 && dice.0 != 0;
let last_moves = state.last_moves;
// ── Capture for closures ───────────────────────────────────────────────────
let stage = vs.stage.clone();
let turn_stage = vs.turn_stage.clone();
@ -214,6 +216,7 @@ pub fn GameScreen(state: GameUiState) -> impl IntoView {
bar_dice=show_dice.then_some(dice)
bar_is_move=is_move_stage
bar_is_double=is_double_dice
last_moves=last_moves
/>
// ── Side panel (scoring panels only) ─────────────────────────