From da0162243fd0904dd7a16717b4c67bfc4ef24d4c Mon Sep 17 00:00:00 2001 From: RemDelaporteMathurin Date: Mon, 18 Aug 2025 11:06:16 -0400 Subject: [PATCH 1/6] smaller cards --- src/styles/App.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/styles/App.css b/src/styles/App.css index 0ea9b2f0..db8cc652 100644 --- a/src/styles/App.css +++ b/src/styles/App.css @@ -300,7 +300,7 @@ aside .description { } .dndnode { - height: 50px; + height: 30px; padding: 10px; border: 1px solid #78A083; border-radius: 5px; From 22169d41c147ef76fa484c9379347c2cf7872214 Mon Sep 17 00:00:00 2001 From: RemDelaporteMathurin Date: Mon, 18 Aug 2025 11:14:27 -0400 Subject: [PATCH 2/6] added show/hide button --- src/App.jsx | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 69 insertions(+), 3 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index 17df2eb2..bd3d8a96 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -48,6 +48,7 @@ const DnDFlow = () => { const [nodes, setNodes, onNodesChange] = useNodesState(initialNodes); const [edges, setEdges, onEdgesChange] = useEdgesState(initialEdges); const [selectedNode, setSelectedNode] = useState(null); + const [sidebarVisible, setSidebarVisible] = useState(true); const [activeTab, setActiveTab] = useState('graph'); const [simulationResults, setSimulationResults] = useState(null); const [selectedEdge, setSelectedEdge] = useState(null); @@ -957,9 +958,74 @@ const DnDFlow = () => { {/* Graph Editor Tab */} {activeTab === 'graph' && (
-
- -
+ {/* Sidebar Toggle Button */} + + + {/* Sidebar */} + {sidebarVisible && ( +
+ +
+ )} Date: Mon, 18 Aug 2025 11:15:05 -0400 Subject: [PATCH 3/6] new SVG --- src/App.jsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index bd3d8a96..2c40a480 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1000,16 +1000,16 @@ const DnDFlow = () => { {sidebarVisible ? ( // Hide sidebar icon (sidebar with left arrow) <> - - - + + + ) : ( // Show sidebar icon (sidebar with right arrow) <> - - - + + + )} @@ -1017,9 +1017,9 @@ const DnDFlow = () => { {/* Sidebar */} {sidebarVisible && ( -
From 900e3588c2e8fba80e3fca48981041583fd33142 Mon Sep 17 00:00:00 2001 From: RemDelaporteMathurin Date: Mon, 18 Aug 2025 11:17:01 -0400 Subject: [PATCH 4/6] moved buttons to the right --- src/components/GraphView.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/GraphView.jsx b/src/components/GraphView.jsx index 652b9b30..32cdf100 100644 --- a/src/components/GraphView.jsx +++ b/src/components/GraphView.jsx @@ -57,7 +57,7 @@ function FloatingButtons({
))}
From d4b2d5decb2e2d06a3c43d7045fcd1fe0c63fc48 Mon Sep 17 00:00:00 2001 From: RemDelaporteMathurin Date: Mon, 18 Aug 2025 11:24:55 -0400 Subject: [PATCH 6/6] even smaller --- src/styles/App.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/styles/App.css b/src/styles/App.css index db8cc652..def03a59 100644 --- a/src/styles/App.css +++ b/src/styles/App.css @@ -300,7 +300,7 @@ aside .description { } .dndnode { - height: 30px; + height: 15px; padding: 10px; border: 1px solid #78A083; border-radius: 5px;