feat: leftsidebar collapsible tool groups + scroll + resizable width

This commit is contained in:
A0 Orchestrator
2026-07-02 10:52:40 +02:00
parent 0463a793bc
commit 0bf9c61793
4 changed files with 87 additions and 7 deletions
+3
View File
@@ -149,6 +149,7 @@ const CADEditor: React.FC<CADEditorProps> = ({ projectId, token, onNavigateBack
const [mobileRightOpen, setMobileRightOpen] = useState(false);
// Desktop sidebar collapse
const [leftSidebarCollapsed, setLeftSidebarCollapsed] = useState(false);
const [leftbarWidth, setLeftbarWidth] = useState(200);
const [rightSidebarCollapsed, setRightSidebarCollapsed] = useState(false);
const [settingsOpen, setSettingsOpen] = useState(false);
const [activeDrawerTab, setActiveDrawerTab] = useState<DrawerTab>('tool');
@@ -1553,6 +1554,8 @@ const CADEditor: React.FC<CADEditorProps> = ({ projectId, token, onNavigateBack
onSaveGroupAsBlock={handleSaveGroupAsBlock}
onGroup={() => handleRibbonAction('group')}
onUngroup={() => handleRibbonAction('ungroup')}
leftbarWidth={leftbarWidth}
onWidthChange={setLeftbarWidth}
/>
<CanvasArea
cursorPos={cursorPos}