From cc7b4d7daa36179c5c7516de990bae8237eeccd0 Mon Sep 17 00:00:00 2001 From: Moritz <101179677+Moritz-Deiaco@users.noreply.github.com> Date: Sun, 19 May 2024 14:52:42 +0200 Subject: [PATCH 1/2] Improved Responsiveness for auth pages --- Moonlight/Core/UI/Components/Auth/Login.razor | 2 +- Moonlight/Core/UI/Components/Auth/Register.razor | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Moonlight/Core/UI/Components/Auth/Login.razor b/Moonlight/Core/UI/Components/Auth/Login.razor index 808502d8..64819a1a 100644 --- a/Moonlight/Core/UI/Components/Auth/Login.razor +++ b/Moonlight/Core/UI/Components/Auth/Login.razor @@ -14,7 +14,7 @@
-
+
Login diff --git a/Moonlight/Core/UI/Components/Auth/Register.razor b/Moonlight/Core/UI/Components/Auth/Register.razor index f4899cd2..03c6f9db 100644 --- a/Moonlight/Core/UI/Components/Auth/Register.razor +++ b/Moonlight/Core/UI/Components/Auth/Register.razor @@ -18,7 +18,7 @@
-
+
@if (ConfigService.Get().Authentication.DenyRegister) { From f12e5f10d5e2c96f20b5c973995905c5f0b05bbf Mon Sep 17 00:00:00 2001 From: Moritz <101179677+Moritz-Deiaco@users.noreply.github.com> Date: Sun, 19 May 2024 15:20:24 +0200 Subject: [PATCH 2/2] Improved Server Ui responsivity --- .../Servers/UI/Layouts/UserLayout.razor | 161 +++++++++--------- 1 file changed, 83 insertions(+), 78 deletions(-) diff --git a/Moonlight/Features/Servers/UI/Layouts/UserLayout.razor b/Moonlight/Features/Servers/UI/Layouts/UserLayout.razor index 64e61503..49eef3de 100644 --- a/Moonlight/Features/Servers/UI/Layouts/UserLayout.razor +++ b/Moonlight/Features/Servers/UI/Layouts/UserLayout.razor @@ -26,95 +26,100 @@
-
-
-
- +
+
+
+ @Server.Name - + @(Server.Image.Name)
-
-
-
- @{ - var color = ServerUtilsHelper.GetColorFromState(Console.State); - } +
+
+
+
+
+
+ @{ + var color = ServerUtilsHelper.GetColorFromState(Console.State); + } - - - @(Console.State) - (@(Formatter.FormatUptime(DateTime.UtcNow - Console.LastStateChangeTimestamp))) - -
-
+ + + @(Console.State) + (@(Formatter.FormatUptime(DateTime.UtcNow - Console.LastStateChangeTimestamp))) + +
+
+
+ + + @(Server.Node.Fqdn):@(Server.MainAllocation.Port) + +
+ @* +
+ + + 188.75.252.37:10324 + +
+ *@ +
+
- - - @(Server.Node.Fqdn):@(Server.MainAllocation.Port) - +
+ @if (Console.State == ServerState.Offline) + { + + + + } + else + { + + } + + @if (Console.State == ServerState.Offline || Console.State == ServerState.Installing) + { + + } + else + { + + + + } + + @if (Console.State == ServerState.Offline || Console.State == ServerState.Installing) + { + + } + else + { + + + + } +
- @* -
- - - 188.75.252.37:10324 - -
- *@
-
-
- @if (Console.State == ServerState.Offline) - { - - - - } - else - { - - } - - @if (Console.State == ServerState.Offline || Console.State == ServerState.Installing) - { - - } - else - { - - - - } - - @if (Console.State == ServerState.Offline || Console.State == ServerState.Installing) - { - - } - else - { - - - - } -
-