From b05184a6541b07e8f478f6e3c3a62c02ea3781fb Mon Sep 17 00:00:00 2001 From: Henry Dollman Date: Sun, 4 Aug 2024 13:58:18 -0400 Subject: [PATCH] mobile style tweaks --- hub/site/src/components/routes/home.tsx | 36 +++++++++++------------ hub/site/src/components/routes/system.tsx | 13 ++++---- hub/site/src/main.tsx | 2 +- 3 files changed, 24 insertions(+), 27 deletions(-) diff --git a/hub/site/src/components/routes/home.tsx b/hub/site/src/components/routes/home.tsx index 7787447..8516e72 100644 --- a/hub/site/src/components/routes/home.tsx +++ b/hub/site/src/components/routes/home.tsx @@ -9,24 +9,22 @@ export default function () { }, []) return ( - <> - - - All Systems - - Updated in real time. Press{' '} - - K - {' '} - to open the command palette. - - - - - - - - - + + + All Systems + + Updated in real time. Press{' '} + + K + {' '} + to open the command palette. + + + + + + + + ) } diff --git a/hub/site/src/components/routes/system.tsx b/hub/site/src/components/routes/system.tsx index ff84cec..d5a84dc 100644 --- a/hub/site/src/components/routes/system.tsx +++ b/hub/site/src/components/routes/system.tsx @@ -147,9 +147,7 @@ export default function ServerDetail({ name }: { name: string }) { dockerMemData.push(memData) dockerNetData.push(netData) } - console.log('dockerCpuData', dockerCpuData) // console.log('dockerMemData', dockerMemData) - console.log('dockerNetData', dockerNetData) setDockerCpuChartData(dockerCpuData) setDockerMemChartData(dockerMemData) setDockerNetChartData(dockerNetData) @@ -170,7 +168,7 @@ export default function ServerDetail({ name }: { name: string }) { return (
-
+

{server.name}

@@ -219,6 +217,7 @@ export default function ServerDetail({ name }: { name: string }) { )}
+
@@ -279,15 +278,15 @@ function ChartCard({ children: React.ReactNode }) { return ( - - + + {title} {description} -
+
- + }>{children} diff --git a/hub/site/src/main.tsx b/hub/site/src/main.tsx index 035a036..024753c 100644 --- a/hub/site/src/main.tsx +++ b/hub/site/src/main.tsx @@ -122,7 +122,7 @@ const Layout = () => { return ( <>
-
+