From 8f826bfed0b3959224c307b5da4183da10f58838 Mon Sep 17 00:00:00 2001 From: gajjug004 Date: Sat, 22 Aug 2026 15:40:07 +0530 Subject: [PATCH] fix: cap the lobby at ten player chips A full room printed every nickname on the projector, which pushed the controls off screen and read as noise. Show the ten newest joins and count the rest in a "+N more" pill. --- frontend/src/pages/Host.vue | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/frontend/src/pages/Host.vue b/frontend/src/pages/Host.vue index f166817..7f252b2 100644 --- a/frontend/src/pages/Host.vue +++ b/frontend/src/pages/Host.vue @@ -107,7 +107,7 @@ -
+

- +

@@ -142,6 +142,12 @@ ×
+
+ +{{ overflowCount }} more +

Waiting for the first player… @@ -563,6 +569,12 @@ const joinUrl = computed( () => `${window.location.origin}/quizzly/join?pin=${session.value.game_pin}` ); +const LOBBY_CHIP_LIMIT = 10; + +// The newest joins are the ones still looking for their own name on the screen. +const visibleParticipants = computed(() => participants.value.slice(-LOBBY_CHIP_LIMIT)); +const overflowCount = computed(() => Math.max(0, participants.value.length - LOBBY_CHIP_LIMIT)); + // The projector shows where to go, not the whole query string. const joinHost = computed(() => `${window.location.host}/quizzly/join`);