@@ -307,8 +307,9 @@ export const Panel = memo(function Panel() {
307307 } ) )
308308 )
309309
310+ const hasCanvasOverlay = isChatOpen || isVariablesOpen
310311 const isSearchOpen = useWorkflowSearchReplaceStore ( ( state ) => state . isOpen )
311- const hasCanvasOverlay = isChatOpen || isVariablesOpen || isSearchOpen
312+ const isSearchingEditor = isSearchOpen && activeTab === 'editor'
312313
313314 const currentWorkflow = activeWorkflowId ? workflows [ activeWorkflowId ] : null
314315 const workflowLocked = isWorkflowEffectivelyLocked ( currentWorkflow , folders )
@@ -769,8 +770,18 @@ export const Panel = memo(function Panel() {
769770 ) }
770771 aria-label = 'Workflow panel'
771772 >
772- < div className = 'flex h-full flex-col border-[var(--border)] border-l pt-3.5' >
773- < div className = 'flex @min-[960px]/workflow:hidden shrink-0 items-center justify-between px-3 pb-2' >
773+ < div
774+ className = { cn (
775+ 'flex h-full flex-col border-[var(--border)] border-l pt-3.5' ,
776+ isSearchingEditor && '@max-[960px]/workflow:pt-0'
777+ ) }
778+ >
779+ < div
780+ className = { cn (
781+ 'flex @min-[960px]/workflow:hidden shrink-0 items-center justify-between px-3 pb-2' ,
782+ isSearchingEditor && '@max-[960px]/workflow:hidden'
783+ ) }
784+ >
774785 < span className = 'text-[var(--text-body)] text-sm' > Workflow</ span >
775786 < Button
776787 variant = 'ghost'
@@ -783,7 +794,12 @@ export const Panel = memo(function Panel() {
783794 </ Button >
784795 </ div >
785796 { /* Header */ }
786- < div className = 'flex shrink-0 items-center justify-between px-2' >
797+ < div
798+ className = { cn (
799+ 'flex shrink-0 items-center justify-between px-2' ,
800+ isSearchingEditor && '@max-[960px]/workflow:hidden'
801+ ) }
802+ >
787803 { /* More and Chat */ }
788804 < div className = 'flex gap-1.5' >
789805 < DropdownMenu open = { isMenuOpen } onOpenChange = { setIsMenuOpen } >
@@ -908,7 +924,12 @@ export const Panel = memo(function Panel() {
908924 </ div >
909925
910926 { /* Tabs */ }
911- < div className = 'flex shrink-0 items-center justify-between px-2 pt-3.5' >
927+ < div
928+ className = { cn (
929+ 'flex shrink-0 items-center justify-between px-2 pt-3.5' ,
930+ isSearchingEditor && '@max-[960px]/workflow:hidden'
931+ ) }
932+ >
912933 < div className = 'flex gap-1' >
913934 { isCopilotTabAvailable && (
914935 < Button
@@ -952,7 +973,12 @@ export const Panel = memo(function Panel() {
952973 </ div >
953974
954975 { /* Tab Content - Keep all tabs mounted but hidden to preserve state */ }
955- < div className = 'flex-1 overflow-hidden pt-3' >
976+ < div
977+ className = { cn (
978+ 'flex-1 overflow-hidden pt-3' ,
979+ isSearchingEditor && '@max-[960px]/workflow:pt-0'
980+ ) }
981+ >
956982 { isCopilotTabAvailable && (
957983 < div
958984 className = {
0 commit comments