From 8e738d29918b79f7a644c30777e890411e54710c Mon Sep 17 00:00:00 2001 From: NathanFlurry Date: Thu, 18 Apr 2024 18:43:37 +0000 Subject: [PATCH] fix: show gray dot for lobbies that finished gracefully (#143) --- src/elements/dev/dev-game-logs-sidebar.ts | 2 +- src/elements/pages/dev/game/pages/game-logs.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/elements/dev/dev-game-logs-sidebar.ts b/src/elements/dev/dev-game-logs-sidebar.ts index 15e2b982..7cceda47 100644 --- a/src/elements/dev/dev-game-logs-sidebar.ts +++ b/src/elements/dev/dev-game-logs-sidebar.ts @@ -15,7 +15,7 @@ const statusBadgeClasses = tv({ variants: { status: { running: ['bg-green-500'], - closed: ['bg-red-500'], + closed: ['bg-gray-500'], failed: ['bg-red-500'], 'not-started': ['bg-green-500'], unknown: ['bg-gray-500'] diff --git a/src/elements/pages/dev/game/pages/game-logs.ts b/src/elements/pages/dev/game/pages/game-logs.ts index 3bf7847b..c4026c0f 100644 --- a/src/elements/pages/dev/game/pages/game-logs.ts +++ b/src/elements/pages/dev/game/pages/game-logs.ts @@ -728,7 +728,7 @@ export function formatLobbyStatus(status: Rivet.cloud.LogsLobbyStatus, startTs: running: 'Running', 'not-started': 'Not started', failed: 'Failed', - closed: 'Closed', + closed: 'Finished', unknown: 'Unknown status' }[statusString]; }