From 5df309cd57cf359f40e4e9e98485efd3cbe2179c Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Thu, 12 Sep 2024 15:55:38 -0500 Subject: [PATCH] alignment --- .../components/filter/CameraGroupSelector.tsx | 112 +++++++++--------- 1 file changed, 58 insertions(+), 54 deletions(-) diff --git a/web/src/components/filter/CameraGroupSelector.tsx b/web/src/components/filter/CameraGroupSelector.tsx index 71e580cbc..d1a34ed6d 100644 --- a/web/src/components/filter/CameraGroupSelector.tsx +++ b/web/src/components/filter/CameraGroupSelector.tsx @@ -291,6 +291,7 @@ function NewGroupDialog({ const onSave = () => { setOpen(false); setEditState("none"); + setEditingGroupName(""); }; const onCancel = () => { @@ -325,41 +326,44 @@ function NewGroupDialog({ > -
- {editState === "none" && ( - <> -
setOpen(false)}> - Camera Groups - - Edit camera groups - -
+
setOpen(false)} + > + Camera Groups + + Edit camera groups + +
+ -
-
+ + +
+
+
{currentGroups.map((group) => ( onEditGroup(group)} /> ))} - - )} +
+ + )} - {editState != "none" && ( - <> -
setEditState("none")}> - - {editState == "add" ? "Add" : "Edit"} Camera Group - - - Edit camera groups - -
- - - )} -
+ {editState != "none" && ( + <> +
setEditState("none")}> + + {editState == "add" ? "Add" : "Edit"} Camera Group + + + Edit camera groups + +
+ + + )}
@@ -449,7 +453,7 @@ export function EditGroupDialog({ >
setOpen(false)}> - Edit Camera Group + Edit Camera Group Edit camera group
@@ -489,7 +493,7 @@ export function CameraGroupRow({ <>

{group[0]}