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 @@ -
- +
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`);