From 4afb21c38b32b59f29fd09237e5e88b85d6fbe1a Mon Sep 17 00:00:00 2001 From: Ender Date: Fri, 24 Oct 2025 20:20:59 +0200 Subject: [PATCH] refactor: improve editor layout with fixed height grid and scrollable content panels --- apps/admin/src/components/EditorShell.tsx | 8 +++++--- apps/admin/src/components/steps/StepContainer.tsx | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/admin/src/components/EditorShell.tsx b/apps/admin/src/components/EditorShell.tsx index 5afcf82..57f8a00 100644 --- a/apps/admin/src/components/EditorShell.tsx +++ b/apps/admin/src/components/EditorShell.tsx @@ -200,7 +200,7 @@ export default function EditorShell({ onLogout, initialPostId, onBack }: { onLog {/* Right content: Stepper and step panels */} - + {[ 'Assets', 'AI Prompt', 'Generate', 'Edit', 'Metadata', 'Publish' ].map((label, idx) => ( @@ -211,6 +211,7 @@ export default function EditorShell({ onLogout, initialPostId, onBack }: { onLog ))} + {activeStep === 0 && ( )} + - {/* Sticky bottom nav so Back/Next don't move */} - + {/* Bottom nav fixed to panel bottom via grid */} + diff --git a/apps/admin/src/components/steps/StepContainer.tsx b/apps/admin/src/components/steps/StepContainer.tsx index fdb4ae8..f3abd89 100644 --- a/apps/admin/src/components/steps/StepContainer.tsx +++ b/apps/admin/src/components/steps/StepContainer.tsx @@ -3,7 +3,7 @@ import type { PropsWithChildren } from 'react'; export default function StepContainer({ children, sx }: PropsWithChildren<{ sx?: SxProps }>) { return ( - + {children} );