From 078619fcc4bcc60662b874e45829ed407d013f90 Mon Sep 17 00:00:00 2001 From: q8gazy Date: Sun, 9 Feb 2025 09:25:01 +0300 Subject: [PATCH] Update PublicLobby button styling and layout --- src/client/PublicLobby.ts | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/src/client/PublicLobby.ts b/src/client/PublicLobby.ts index 1d497918b..3185b7a7c 100644 --- a/src/client/PublicLobby.ts +++ b/src/client/PublicLobby.ts @@ -60,6 +60,11 @@ export class PublicLobby extends LitElement { const lobby = this.lobbies[0]; const timeRemaining = Math.max(0, Math.floor(lobby.msUntilStart / 1000)); + // Format time to show minutes and seconds + const minutes = Math.floor(timeRemaining / 60); + const seconds = timeRemaining % 60; + const timeDisplay = minutes > 0 ? `${minutes}m ${seconds}s` : `${seconds}s`; + return html` `;