Keep last round's summary visible until all bids are placed
The round summary used to disappear after a fixed 5 seconds. It is now derived from the game state: the previous round's result is shown while the new round is in bidding and hides once card play starts. This also survives a page reload. - Drop the client-side round timer from useWizard - On narrow screens show the summary in the page flow so it does not cover the bid buttons Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -13,8 +13,7 @@ const STATUS_MESSAGES = {
|
||||
} as const
|
||||
|
||||
function App() {
|
||||
const { status, playerId, lobby, game, completedTrick, completedRound, toasts, dismissToast, actions } =
|
||||
useWizard()
|
||||
const { status, playerId, lobby, game, completedTrick, toasts, dismissToast, actions } = useWizard()
|
||||
const lobbyCode = lobby?.code
|
||||
|
||||
// Keep the lobby code in the address bar so the URL can be shared as an invite link.
|
||||
@@ -38,7 +37,6 @@ function App() {
|
||||
game={game}
|
||||
playerId={playerId}
|
||||
completedTrick={completedTrick}
|
||||
completedRound={completedRound}
|
||||
actions={actions}
|
||||
/>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user