From 95fef83dcf7cc65456dacee03742c1e58f82dbc3 Mon Sep 17 00:00:00 2001 From: Liam Date: Fri, 19 Apr 2024 21:43:32 +0100 Subject: [PATCH] fix server page for mobile --- .../[platform]/[[...hostname]]/page.tsx | 2 +- src/app/components/player/player-view.tsx | 2 +- src/app/components/server/server-view.tsx | 62 +++++++++---------- 3 files changed, 32 insertions(+), 34 deletions(-) diff --git a/src/app/(pages)/server/[platform]/[[...hostname]]/page.tsx b/src/app/(pages)/server/[platform]/[[...hostname]]/page.tsx index a0075d2..3a044bc 100644 --- a/src/app/(pages)/server/[platform]/[[...hostname]]/page.tsx +++ b/src/app/(pages)/server/[platform]/[[...hostname]]/page.tsx @@ -135,7 +135,7 @@ export default async function Page({ params: { platform, hostname } }: Params): {error && } {server != null && ( - + diff --git a/src/app/components/player/player-view.tsx b/src/app/components/player/player-view.tsx index a988098..b467541 100644 --- a/src/app/components/player/player-view.tsx +++ b/src/app/components/player/player-view.tsx @@ -45,7 +45,7 @@ export function PlayerView({ player }: PlayerViewProps): ReactElement { -
+
- -
- {/* Favicon */} - {`${server.hostname}'s +
+
+ {/* Favicon */} + {`${server.hostname}'s - {/* Name & MOTD */} -
-

{server.hostname}

- {server.motd.html.map((line: string, index: number): ReactElement => { - return

; - })} -
- - {/* Ping */} -
-

- {server.players.online}/{server.players.max} -

- Ping! -
+ {/* Name & MOTD */} +
+

{server.hostname}

+ {server.motd.html.map((line: string, index: number): ReactElement => { + return

; + })}
- -
+ + {/* Ping */} +
+

+ {server.players.online}/{server.players.max} +

+ Ping! +
+
+