From 9fe8a5dba721bb619648cefc6942ee183af2882e Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Thu, 14 Mar 2024 12:19:41 +0100 Subject: [PATCH] Make spacing, shadows, and radius sizes more consistent Signed-off-by: Julius Volz --- web/ui/mantine-ui/src/RuleDefinition.tsx | 2 +- web/ui/mantine-ui/src/pages/AgentPage.tsx | 2 +- web/ui/mantine-ui/src/pages/ConfigPage.tsx | 4 ++-- web/ui/mantine-ui/src/pages/FlagsPage.tsx | 2 +- web/ui/mantine-ui/src/pages/RulesPage.tsx | 5 ++--- web/ui/mantine-ui/src/pages/StatusPage.tsx | 6 +++--- web/ui/mantine-ui/src/pages/TSDBStatusPage.tsx | 4 ++-- web/ui/mantine-ui/src/pages/query/QueryPage.tsx | 7 +++---- web/ui/mantine-ui/src/pages/query/QueryPanel.tsx | 2 +- 9 files changed, 16 insertions(+), 18 deletions(-) diff --git a/web/ui/mantine-ui/src/RuleDefinition.tsx b/web/ui/mantine-ui/src/RuleDefinition.tsx index 95249f2d6a..d8546b3951 100644 --- a/web/ui/mantine-ui/src/RuleDefinition.tsx +++ b/web/ui/mantine-ui/src/RuleDefinition.tsx @@ -22,7 +22,7 @@ const RuleDefinition: FC<{ rule: Rule }> = ({ rule }) => { return ( <> - + { return ( - + diff --git a/web/ui/mantine-ui/src/pages/ConfigPage.tsx b/web/ui/mantine-ui/src/pages/ConfigPage.tsx index 644ed5d886..a8419a8db4 100644 --- a/web/ui/mantine-ui/src/pages/ConfigPage.tsx +++ b/web/ui/mantine-ui/src/pages/ConfigPage.tsx @@ -13,11 +13,11 @@ export default function ConfigPage() { ); } diff --git a/web/ui/mantine-ui/src/pages/FlagsPage.tsx b/web/ui/mantine-ui/src/pages/FlagsPage.tsx index 2ba8459d4f..d90328f964 100644 --- a/web/ui/mantine-ui/src/pages/FlagsPage.tsx +++ b/web/ui/mantine-ui/src/pages/FlagsPage.tsx @@ -124,7 +124,7 @@ export default function FlagsPage() { )); return ( - + ({ path: `/rules` }); return ( - <> + {data.data.groups.map((g, i) => ( ))} - + ); } diff --git a/web/ui/mantine-ui/src/pages/StatusPage.tsx b/web/ui/mantine-ui/src/pages/StatusPage.tsx index 43aef6dca4..5555e74ef4 100644 --- a/web/ui/mantine-ui/src/pages/StatusPage.tsx +++ b/web/ui/mantine-ui/src/pages/StatusPage.tsx @@ -36,8 +36,8 @@ export default function StatusPage() { }); return ( - - + + @@ -55,7 +55,7 @@ export default function StatusPage() { - + diff --git a/web/ui/mantine-ui/src/pages/TSDBStatusPage.tsx b/web/ui/mantine-ui/src/pages/TSDBStatusPage.tsx index 0b3aaae240..5da498e0df 100644 --- a/web/ui/mantine-ui/src/pages/TSDBStatusPage.tsx +++ b/web/ui/mantine-ui/src/pages/TSDBStatusPage.tsx @@ -35,7 +35,7 @@ export default function TSDBStatusPage() { ]; return ( - + {[ { title: "TSDB Head Status", @@ -64,7 +64,7 @@ export default function TSDBStatusPage() { formatAsCode: true, }, ].map(({ title, unit = "Count", stats, formatAsCode }) => ( - + {title} diff --git a/web/ui/mantine-ui/src/pages/query/QueryPage.tsx b/web/ui/mantine-ui/src/pages/query/QueryPage.tsx index d80c8d5485..cb2a75c217 100644 --- a/web/ui/mantine-ui/src/pages/query/QueryPage.tsx +++ b/web/ui/mantine-ui/src/pages/query/QueryPage.tsx @@ -1,4 +1,4 @@ -import { Alert, Button, Notification, Stack, rem } from "@mantine/core"; +import { Alert, Box, Button, Notification, Stack, rem } from "@mantine/core"; import { IconAlertCircle, IconAlertTriangle, @@ -40,13 +40,12 @@ export default function QueryPage() { const browserTime = new Date().getTime() / 1000; const serverTime = timeResult.data.result[0]; - console.log(browserTime, serverTime, Math.abs(browserTime - serverTime)); setTimeDelta(Math.abs(browserTime - serverTime)); } }, [timeResult]); return ( - <> + {metricNamesError && ( Add query - + ); } diff --git a/web/ui/mantine-ui/src/pages/query/QueryPanel.tsx b/web/ui/mantine-ui/src/pages/query/QueryPanel.tsx index 67467648ac..3319d2eb65 100644 --- a/web/ui/mantine-ui/src/pages/query/QueryPanel.tsx +++ b/web/ui/mantine-ui/src/pages/query/QueryPanel.tsx @@ -47,7 +47,7 @@ const QueryPanel: FC = ({ idx, metricNames }) => { const dispatch = useAppDispatch(); return ( - +