From b5fca870d171448d1516cc6d80ac1452ac465dcb Mon Sep 17 00:00:00 2001 From: chihlasm Date: Sat, 7 Mar 2026 02:18:33 -0500 Subject: [PATCH] fix: AI Assist panel as fixed right drawer (matching Copilot/Scratchpad) Convert EditorAIPanel from in-flow flex child to fixed right-side drawer overlay, same pattern as CopilotPanel and ScratchpadSidebar. The panel is fixed at right:0 spanning full viewport height, and editor pages add pr-[380px] padding when open so content shifts left without overlap. Co-Authored-By: Claude Opus 4.6 --- .../src/components/editor-ai/EditorAIPanel.tsx | 15 ++++++++++++--- frontend/src/pages/ProceduralEditorPage.tsx | 5 +---- frontend/src/pages/TreeEditorPage.tsx | 5 +---- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/frontend/src/components/editor-ai/EditorAIPanel.tsx b/frontend/src/components/editor-ai/EditorAIPanel.tsx index 465b682a..5378ccdd 100644 --- a/frontend/src/components/editor-ai/EditorAIPanel.tsx +++ b/frontend/src/components/editor-ai/EditorAIPanel.tsx @@ -44,8 +44,17 @@ export function EditorAIPanel({ const pendingCount = suggestions.filter((s) => s.status === 'pending').length return ( -
-
+
+
AI Assist @@ -58,7 +67,7 @@ export function EditorAIPanel({
-
+