diff --git a/src/apps/golf/components/GolfGame.module.css b/src/apps/golf/components/GolfGame.module.css index b1bd073..48c94d4 100644 --- a/src/apps/golf/components/GolfGame.module.css +++ b/src/apps/golf/components/GolfGame.module.css @@ -382,6 +382,7 @@ gap: 1rem; justify-content: center; flex-wrap: wrap; + min-height: 2.5rem; } .actionButton, diff --git a/src/apps/golf/components/GolfGame.tsx b/src/apps/golf/components/GolfGame.tsx index a7a7dd3..926347b 100644 --- a/src/apps/golf/components/GolfGame.tsx +++ b/src/apps/golf/components/GolfGame.tsx @@ -584,41 +584,39 @@ const GolfGame = ({ onGameIdChange, onPlayerIdChange, onPlayerNameChange, onConn )} - {isMyTurn && ( -
- {!gameState.drawnCard ? ( - <> - - {gameState.discardPile.length > 0 && ( - - )} - - ) : ( - <> - - + {gameState.discardPile.length > 0 && ( + - - )} - - {gameState.gamePhase === 'playing' && !gameState.drawnCard && ( - - )} -
- )} + + + )} + + {gameState.gamePhase === 'playing' && !gameState.drawnCard && ( + + )} + {currentPlayer.revealedCards.length < 2 && gameState.gamePhase === 'playing' && !currentPlayer.hasPeeked && (