From d16006f28f853027c4717d6b7f06993e6ae4ace6 Mon Sep 17 00:00:00 2001 From: mbecker20 Date: Wed, 22 Mar 2023 07:03:28 +0000 Subject: [PATCH] improve design --- frontend/src/components/home/Summary.tsx | 27 ++++++++++++++++-------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/frontend/src/components/home/Summary.tsx b/frontend/src/components/home/Summary.tsx index 243f9015b..df15ba016 100644 --- a/frontend/src/components/home/Summary.tsx +++ b/frontend/src/components/home/Summary.tsx @@ -7,7 +7,7 @@ import PieChart, { PieChartSection } from "../shared/PieChart"; import { COLORS } from "../../style/colors"; import { useAppDimensions } from "../../state/DimensionProvider"; -const PIE_CHART_HEIGHT = 250; +const PIE_CHART_SIZE = 250; const Summary: Component<{}> = (p) => { const { isMobile } = useAppDimensions(); @@ -17,14 +17,22 @@ const Summary: Component<{}> = (p) => { -
+
-
+
@@ -113,11 +121,12 @@ function useServerCount(): Accessor { const { servers } = useAppState(); const count = createMemo(() => { const ids = servers.ids(); - if (!ids) return [ - { title: "healthy", amount: 0, color: COLORS.textgreen }, - { title: "unhealthy", amount: 0, color: COLORS.textred }, - { title: "disabled", amount: 0, color: COLORS.textblue }, - ]; + if (!ids) + return [ + { title: "healthy", amount: 0, color: COLORS.textgreen }, + { title: "unhealthy", amount: 0, color: COLORS.textred }, + { title: "disabled", amount: 0, color: COLORS.textblue }, + ]; let healthy = 0; let unhealthy = 0; let disabled = 0;