From 10825e8b82469cea958c34eaed45a6d84fd88676 Mon Sep 17 00:00:00 2001 From: adlee-was-taken Date: Sun, 22 Feb 2026 18:00:38 -0500 Subject: [PATCH] Add opponent-turn class to status message in renderGame The status was set without a type class in renderGame(), overriding the styled version from updateStatusFromGameState() on every state update. Now the purple background shows consistently for opponent turns. Co-Authored-By: Claude Opus 4.6 --- client/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/app.js b/client/app.js index f1b1cdc..18e38da 100644 --- a/client/app.js +++ b/client/app.js @@ -3807,7 +3807,7 @@ class GolfGame { : this.gameState.current_player_id; const displayedPlayer = this.gameState.players.find(p => p.id === displayedPlayerId); if (displayedPlayer && displayedPlayerId !== this.playerId) { - this.setStatus(`${displayedPlayer.name}'s turn`); + this.setStatus(`${displayedPlayer.name}'s turn`, 'opponent-turn'); } // Update player header (name + score like opponents)