From a2db7be26f65a8e51ad022502a0f67f0218f3eb7 Mon Sep 17 00:00:00 2001 From: ChiaraBm Date: Fri, 18 Jul 2025 23:17:56 +0200 Subject: [PATCH] Improved server header and variables page --- .../Servers/ServerTabs/VariablesTab.razor | 28 +++++++++++-------- .../UI/Views/Client/Manage.razor | 24 ++++++++++------ 2 files changed, 31 insertions(+), 21 deletions(-) diff --git a/MoonlightServers.Frontend/UI/Components/Servers/ServerTabs/VariablesTab.razor b/MoonlightServers.Frontend/UI/Components/Servers/ServerTabs/VariablesTab.razor index 483009e..ba46a08 100644 --- a/MoonlightServers.Frontend/UI/Components/Servers/ServerTabs/VariablesTab.razor +++ b/MoonlightServers.Frontend/UI/Components/Servers/ServerTabs/VariablesTab.razor @@ -12,18 +12,22 @@
@foreach (var variable in Variables) { -
- -

- @variable.Description -

-
- +
+
+
+ @variable.Name +
+
+
+

+ @variable.Description +

+
+ +
} diff --git a/MoonlightServers.Frontend/UI/Views/Client/Manage.razor b/MoonlightServers.Frontend/UI/Views/Client/Manage.razor index dec6244..91e1246 100644 --- a/MoonlightServers.Frontend/UI/Views/Client/Manage.razor +++ b/MoonlightServers.Frontend/UI/Views/Client/Manage.razor @@ -29,18 +29,24 @@
@{ - var bgColor = State switch + var statusClass = State switch { - ServerState.Installing => "bg-primary", - ServerState.Offline => "bg-error", - ServerState.Starting => "bg-warning", - ServerState.Stopping => "bg-warning", - ServerState.Online => "bg-success", - _ => "bg-gray-500" + ServerState.Installing => "status-primary", + ServerState.Offline => "status-error", + ServerState.Starting => "status-warning", + ServerState.Stopping => "status-warning", + ServerState.Online => "status-success", + _ => "status-secondary" }; } - -
+ +
+ @if (State != ServerState.Offline) + { +
+ } +
+