diff --git a/src/App.jsx b/src/App.jsx index 17df2eb2..2c40a480 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 && ( +
+ +
+ )} { cursor: 'grab', fontSize: '13px', transition: 'all 0.2s ease', - display: 'block' + display: 'flex', + alignItems: 'center', + justifyContent: 'space-between' }} onMouseEnter={(e) => { const currentBg = window.getComputedStyle(e.target).backgroundColor; @@ -136,7 +138,13 @@ export default () => { e.target.style.cursor = 'grab'; }} > - {getNodeDisplayName(nodeType)} + {getNodeDisplayName(nodeType)} + + ⋮⋮ +
))} diff --git a/src/styles/App.css b/src/styles/App.css index 0ea9b2f0..def03a59 100644 --- a/src/styles/App.css +++ b/src/styles/App.css @@ -300,7 +300,7 @@ aside .description { } .dndnode { - height: 50px; + height: 15px; padding: 10px; border: 1px solid #78A083; border-radius: 5px;