From 7793da8c5f5f68eca3a94564c1578a82b31c4fd3 Mon Sep 17 00:00:00 2001 From: chihlasm Date: Sat, 7 Mar 2026 02:10:12 -0500 Subject: [PATCH] fix: move AI Assist panel to full-height side layout in both editors The AI panel was nested inside the content area, only spanning the step list / canvas section. Now it sits at the outermost flex level, spanning the full page height alongside all content (toolbar, collapsible sections, steps/canvas). This prevents the panel from overlapping content and lets the editor area properly shrink. Co-Authored-By: Claude Opus 4.6 --- frontend/src/pages/ProceduralEditorPage.tsx | 43 ++++++++------- frontend/src/pages/TreeEditorPage.tsx | 61 +++++++++++---------- 2 files changed, 53 insertions(+), 51 deletions(-) diff --git a/frontend/src/pages/ProceduralEditorPage.tsx b/frontend/src/pages/ProceduralEditorPage.tsx index 01030d29..3f5ac544 100644 --- a/frontend/src/pages/ProceduralEditorPage.tsx +++ b/frontend/src/pages/ProceduralEditorPage.tsx @@ -180,7 +180,9 @@ export function ProceduralEditorPage() { } return ( -
+
+ {/* Main content column */} +
{/* Toolbar — sticky */}
@@ -315,27 +317,26 @@ export function ProceduralEditorPage() { )}
- {/* Step List + AI Panel */} -
-
- -
- - + {/* Step List */} +
+
+
{/* end main content column */} + + {editorAI.contextMenu && ( +
+ {/* Main content column */} +
{/* Draft Restore Prompt */} {showDraftPrompt && ( @@ -837,35 +839,16 @@ export function TreeEditorPage() {
)} - {/* Main Editor + AI Panel */} -
-
- setIsMetadataOpen(false)} - editingNodeId={editorAI.isOpen ? null : editingNodeId} - onNodeSelect={handleNodeSelect} - onSelectAnswerType={handleSelectAnswerType} - onNodeContextMenu={editorAI.openContextMenu} - /> -
- - + setIsMetadataOpen(false)} + editingNodeId={editorAI.isOpen ? null : editingNodeId} + onNodeSelect={handleNodeSelect} + onSelectAnswerType={handleSelectAnswerType} + onNodeContextMenu={editorAI.openContextMenu} />
@@ -894,6 +877,24 @@ export function TreeEditorPage() { onClose={() => setShowExportModal(false)} /> )} +
{/* end main content column */} + + {/* AI Context Menu */} {editorAI.contextMenu && (