From 3d2a0ee3fc53f31fd47b7738e133ab09e1806637 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 30 Dec 2025 22:37:54 +0000 Subject: [PATCH] fix: workspace scroll behavior - only center column scrolls - Add minHeight: 0 to flex containers to allow proper shrinking - Fix overflow behavior so only the editor area scrolls - Sidebars remain fixed while editing long content --- src/app/pages/NewWorkspace.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/pages/NewWorkspace.tsx b/src/app/pages/NewWorkspace.tsx index eca9364..0c110be 100644 --- a/src/app/pages/NewWorkspace.tsx +++ b/src/app/pages/NewWorkspace.tsx @@ -1218,6 +1218,7 @@ function EditorArea({ colors, activeDoc, openTabs, activeTabId, closeTab, setAct flex: 1, display: 'flex', overflow: 'hidden', + minHeight: 0, // Critical: allows flex item to shrink below content size }}> {/* Main Editor Area */}
{activeDoc ? ( isLocked ? ( @@ -1529,6 +1531,8 @@ function EditorArea({ colors, activeDoc, openTabs, activeTabId, closeTab, setAct maxWidth: structureViewExpanded ? '60%' : '500px', borderLeft: `1px solid ${colors.border}`, transition: 'all 0.3s ease', + minHeight: 0, + overflow: 'auto', }}>