From 188e8e52a20bfbf5b85b360e66da2d7365830343 Mon Sep 17 00:00:00 2001 From: danny Date: Sun, 14 Jun 2026 15:01:41 +0200 Subject: [PATCH] Fix imposter list placeholder persisting + hide reveal button when all answers shown --- index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index a31f25a..82ff00e 100644 --- a/index.html +++ b/index.html @@ -1125,6 +1125,8 @@ const App = (() => { wrap.innerHTML='

Erst Spieler beitreten lassen.

'; updateImposterCount(); return; } + // Remove the placeholder text if it's still in the DOM + wrap.querySelectorAll('p.empty').forEach(el=>el.remove()); const existing=new Map([...wrap.querySelectorAll('[data-imp]')].map(el=>[el.dataset.imp,el])); const seen=new Set(); players.forEach(p=>{ @@ -1234,7 +1236,8 @@ const App = (() => { const resolved=!!state.roundOutcome; // Reveal buttons: only before reveal all show('hRevealNextBtn', false); // replaced by clickable cards - show('hRevealAllBtn', !resolved && !state.votingOpen); + const allFullyRevealed = revealCount >= players.length && players.length > 0; + show('hRevealAllBtn', !resolved && !state.votingOpen && !allFullyRevealed); show('hOpenVotingBtn', anyRevealed && !state.votingOpen && !resolved); show('hResolveBtn', anyRevealed && state.votingOpen && !resolved);