From c5c4cc12fee31ae21a21da747e247cfae3210b2f Mon Sep 17 00:00:00 2001 From: Connor Yoh Date: Fri, 3 Oct 2025 14:23:31 +0100 Subject: [PATCH] Top controls only show with files --- frontend/src/components/fileEditor/FileEditor.tsx | 4 ++-- frontend/src/components/layout/Workbench.tsx | 11 +++++++---- frontend/src/components/pageEditor/PageEditor.tsx | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/fileEditor/FileEditor.tsx b/frontend/src/components/fileEditor/FileEditor.tsx index 00bf22480..305903b0c 100644 --- a/frontend/src/components/fileEditor/FileEditor.tsx +++ b/frontend/src/components/fileEditor/FileEditor.tsx @@ -348,7 +348,7 @@ const FileEditor = ({ - + {activeStirlingFileStubs.length === 0 && !zipExtractionProgress.isExtracting ? ( @@ -446,7 +446,7 @@ const FileEditor = ({ onSelectFiles={handleLoadFromStorage} /> - + ); diff --git a/frontend/src/components/layout/Workbench.tsx b/frontend/src/components/layout/Workbench.tsx index 8089d1a44..f0f9a542e 100644 --- a/frontend/src/components/layout/Workbench.tsx +++ b/frontend/src/components/layout/Workbench.tsx @@ -146,10 +146,12 @@ export default function Workbench() { } > {/* Top Controls */} - + {activeFiles.length > 0 && ( + + )} {/* Dismiss All Errors Button */} @@ -159,6 +161,7 @@ export default function Workbench() { className="flex-1 min-h-0 relative z-10 workbench-scrollable " style={{ transition: 'opacity 0.15s ease-in-out', + paddingTop: activeFiles.length > 0 ? '3.5rem' : '0', }} > {renderMainContent()} diff --git a/frontend/src/components/pageEditor/PageEditor.tsx b/frontend/src/components/pageEditor/PageEditor.tsx index ee77d142d..0cab1f947 100644 --- a/frontend/src/components/pageEditor/PageEditor.tsx +++ b/frontend/src/components/pageEditor/PageEditor.tsx @@ -662,7 +662,7 @@ const PageEditor = ({ const displayedPages = displayDocument?.pages || []; return ( - + {!mergedPdfDocument && !globalProcessing && activeFileIds.length === 0 && (