From dc37ee0fcdb2a29e4337d34f249a60bd046f48a3 Mon Sep 17 00:00:00 2001 From: William Piers Date: Tue, 4 Jun 2024 14:11:34 +0200 Subject: [PATCH] WIP - Add EditProjectNavbar extension --- .../EditProjectNavbar/EditProjectNavbar.tsx | 66 ++++++++++++++----- 1 file changed, 51 insertions(+), 15 deletions(-) diff --git a/packages/sirius-web/frontend/sirius-web-application/src/views/edit-project/EditProjectNavbar/EditProjectNavbar.tsx b/packages/sirius-web/frontend/sirius-web-application/src/views/edit-project/EditProjectNavbar/EditProjectNavbar.tsx index a8d3a7936d..db149ac82f 100644 --- a/packages/sirius-web/frontend/sirius-web-application/src/views/edit-project/EditProjectNavbar/EditProjectNavbar.tsx +++ b/packages/sirius-web/frontend/sirius-web-application/src/views/edit-project/EditProjectNavbar/EditProjectNavbar.tsx @@ -61,11 +61,33 @@ const projectEventSubscription = gql` `; const useEditProjectViewNavbarStyles = makeStyles((theme) => ({ + toolbar: { + display: 'flex', + flexDirection: 'row', + justifyContent: 'space-between', + width: '100%', + }, center: { display: 'flex', flexDirection: 'row', alignItems: 'center', }, + left: { + display: 'flex', + flexDirection: 'row', + alignItems: 'center', + }, + right: { + display: 'flex', + flexDirection: 'row', + alignItems: 'center', + }, + CUSTOM_EXT: { + marginRight: 'auto', + }, + CUSTOM_EXT_HIDDEN: { + visibility: 'hidden', + }, title: { marginRight: theme.spacing(2), overflow: 'hidden', @@ -163,24 +185,38 @@ export const EditProjectNavbar = ({ project }: EditProjectNavbarProps) => { modal = ; } } + let customExtension = ( +
+ EditProjectNavbar_LEFT +
+ ); + let hiddenCustomExtension = ( +
+ EditProjectNavbar_LEFT +
+ ); return ( <> -
- - {projectName} - - - - +
+
{customExtension}
+
+ + {projectName} + + + + +
+
{hiddenCustomExtension}