From 13dddab5e57871d2e0d583dd6da982f4ed6e4827 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Wed, 30 Oct 2024 11:56:28 +0000 Subject: [PATCH] Refactor MonitorTestForm component to adjust margins and spacing --- .../Components/Form/Monitor/MonitorStep.tsx | 19 +++++++---- .../Components/Form/Monitor/MonitorTest.tsx | 5 +-- Dashboard/src/Pages/Monitor/View/Criteria.tsx | 32 +++++++++++++++++++ 3 files changed, 47 insertions(+), 9 deletions(-) diff --git a/Dashboard/src/Components/Form/Monitor/MonitorStep.tsx b/Dashboard/src/Components/Form/Monitor/MonitorStep.tsx index e8c2325eb57..101fd19827f 100644 --- a/Dashboard/src/Components/Form/Monitor/MonitorStep.tsx +++ b/Dashboard/src/Components/Form/Monitor/MonitorStep.tsx @@ -15,7 +15,10 @@ import MonitorType from "Common/Types/Monitor/MonitorType"; import BrowserType from "Common/Types/Monitor/SyntheticMonitors/BrowserType"; import Port from "Common/Types/Port"; import ScreenSizeType from "Common/Types/ScreenSizeType"; -import Button, { ButtonStyleType } from "Common/UI/Components/Button/Button"; +import Button, { + ButtonSize, + ButtonStyleType, +} from "Common/UI/Components/Button/Button"; import CheckBoxList, { CategoryCheckboxValue, enumToCategoryCheckboxOption, @@ -708,12 +711,14 @@ const MonitorStepElement: FunctionComponent = ( )} {/** Monitor Test Form */} - - +
+ +
{/** Monitoring Critera Form */} diff --git a/Dashboard/src/Components/Form/Monitor/MonitorTest.tsx b/Dashboard/src/Components/Form/Monitor/MonitorTest.tsx index 5f8f78bfed0..4429bc33600 100644 --- a/Dashboard/src/Components/Form/Monitor/MonitorTest.tsx +++ b/Dashboard/src/Components/Form/Monitor/MonitorTest.tsx @@ -29,6 +29,7 @@ export interface ComponentProps { monitorSteps: MonitorSteps; monitorType: MonitorType; probes: Array; + buttonSize: ButtonSize; } const MonitorTestForm: FunctionComponent = ( @@ -121,10 +122,10 @@ const MonitorTestForm: FunctionComponent = ( return (
-
+