From cf356fa72da64236bbced97823d39bc4c8743e1b Mon Sep 17 00:00:00 2001 From: SarahBellaha Date: Mon, 9 Dec 2024 08:11:24 +0100 Subject: [PATCH] front: lmr: reduce grid margins from 35s to 15s Signed-off-by: SarahBellaha --- .../stdcm/components/StdcmForm/StdcmConfig.tsx | 4 ++-- front/tests/assets/stdcm/stdcmAllStops.json | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/front/src/applications/stdcm/components/StdcmForm/StdcmConfig.tsx b/front/src/applications/stdcm/components/StdcmForm/StdcmConfig.tsx index 9b10c0193e0..98de0b57a78 100644 --- a/front/src/applications/stdcm/components/StdcmForm/StdcmConfig.tsx +++ b/front/src/applications/stdcm/components/StdcmForm/StdcmConfig.tsx @@ -125,8 +125,8 @@ const StdcmConfig = ({ useEffect(() => { if (!isDebugMode) { - dispatch(updateGridMarginAfter(35)); - dispatch(updateGridMarginBefore(35)); + dispatch(updateGridMarginAfter(15)); + dispatch(updateGridMarginBefore(15)); dispatch(updateStdcmStandardAllowance({ type: 'time_per_distance', value: 4.5 })); } }, [isDebugMode]); diff --git a/front/tests/assets/stdcm/stdcmAllStops.json b/front/tests/assets/stdcm/stdcmAllStops.json index 73af0b57937..c757f486cbd 100644 --- a/front/tests/assets/stdcm/stdcmAllStops.json +++ b/front/tests/assets/stdcm/stdcmAllStops.json @@ -5,7 +5,7 @@ "code": "BC", "endStop": "", "passageStop": "", - "startStop": "00:56", + "startStop": "00:55", "weight": "400t", "refEngine": "" }, @@ -14,7 +14,7 @@ "operationalPoint": "Mid_West_station", "code": "BV", "endStop": "", - "passageStop": "01:16", + "passageStop": "01:15", "startStop": "", "weight": "=", "refEngine": "=" @@ -23,9 +23,9 @@ "index": 3, "operationalPoint": "Mid_East_station", "code": "BV", - "endStop": "01:22", + "endStop": "01:21", "passageStop": "3 min", - "startStop": "01:25", + "startStop": "01:24", "weight": "=", "refEngine": "=" }, @@ -33,9 +33,9 @@ "index": 4, "operationalPoint": "North_station", "code": "BV", - "endStop": "01:33", + "endStop": "01:32", "passageStop": "4 min", - "startStop": "01:37", + "startStop": "01:36", "weight": "=", "refEngine": "=" }, @@ -43,7 +43,7 @@ "index": 5, "operationalPoint": "South_station", "code": "BV", - "endStop": "01:40", + "endStop": "01:39", "passageStop": "", "startStop": "", "weight": "400t",