From 3ddf9801e5747009fcfd73bd9b9c643ebb5693a8 Mon Sep 17 00:00:00 2001 From: selankon Date: Tue, 29 Oct 2024 15:31:25 +0100 Subject: [PATCH] chore(meshconfig): fix form layout --- .../src/components/MeshStatus.tsx | 1 + .../src/containers/LimeConfigEditForm.tsx | 39 ++++++++++--------- src/components/Modal/FullScreenModal.tsx | 10 +++-- 3 files changed, 28 insertions(+), 22 deletions(-) diff --git a/plugins/lime-plugin-mesh-wide-config/src/components/MeshStatus.tsx b/plugins/lime-plugin-mesh-wide-config/src/components/MeshStatus.tsx index 361e2081..8700df27 100644 --- a/plugins/lime-plugin-mesh-wide-config/src/components/MeshStatus.tsx +++ b/plugins/lime-plugin-mesh-wide-config/src/components/MeshStatus.tsx @@ -7,6 +7,7 @@ export const MeshStatus = () => { const { showToast } = useToast(); return ( { diff --git a/plugins/lime-plugin-mesh-wide-config/src/containers/LimeConfigEditForm.tsx b/plugins/lime-plugin-mesh-wide-config/src/containers/LimeConfigEditForm.tsx index 02795012..f2fc9333 100644 --- a/plugins/lime-plugin-mesh-wide-config/src/containers/LimeConfigEditForm.tsx +++ b/plugins/lime-plugin-mesh-wide-config/src/containers/LimeConfigEditForm.tsx @@ -45,25 +45,26 @@ const EditConfigForm = ({ }; return ( -
- -
-
- {Object.entries(formData).map( - ([title, dropdown], index) => ( - - ) - )} - -
- - -
-
+ +
+
+ {Object.entries(formData).map( + ([title, dropdown], index) => ( + + ) + )} + +
+ + +
); }; diff --git a/src/components/Modal/FullScreenModal.tsx b/src/components/Modal/FullScreenModal.tsx index 31a1a4ce..2f73428e 100644 --- a/src/components/Modal/FullScreenModal.tsx +++ b/src/components/Modal/FullScreenModal.tsx @@ -20,8 +20,8 @@ export const FullScreenModal = ({ onClose, }: IFullScreenModalProps) => { return ( -
-
+
+
) : ( -
+
{children}
)}