From dfbcc2da82ce92c80ef5b59993d90c24eb654164 Mon Sep 17 00:00:00 2001 From: Alexander Zielonka Date: Sun, 19 Apr 2026 21:34:55 +0200 Subject: [PATCH] Dashboard: hide unreachable servers by default + keep card height consistent - Unreachable cards now show a disabled 'Starten' button so moderator cards stay the same height as reachable ones - Dashboard hides unreachable servers by default; a toggle button (bottom of header area, only visible when unreachable count > 0) flips the view and persists the preference in localStorage Co-Authored-By: Claude Opus 4.7 (1M context) --- gsm-frontend/src/components/ServerCard.jsx | 12 ++++++-- gsm-frontend/src/pages/Dashboard.jsx | 33 ++++++++++++++++++++-- 2 files changed, 40 insertions(+), 5 deletions(-) diff --git a/gsm-frontend/src/components/ServerCard.jsx b/gsm-frontend/src/components/ServerCard.jsx index 2c17b2d..138aea7 100644 --- a/gsm-frontend/src/components/ServerCard.jsx +++ b/gsm-frontend/src/components/ServerCard.jsx @@ -288,10 +288,18 @@ export default function ServerCard({ server, onClick, isAuthenticated, isGuest, )} {/* Server Controls - only for moderators */} - {isModerator && !isUnreachable && ( + {isModerator && (
- {(server.status === 'online' || (server.running && server.status !== 'starting' && server.status !== 'stopping')) ? ( + {isUnreachable ? ( + + ) : (server.status === 'online' || (server.running && server.status !== 'starting' && server.status !== 'stopping')) ? ( <> +
+ )} +
+ {visibleServers.map((server, index) => (
))} -
+
+ )} {/* Discord Bot Invite Section */}