@@ -361,21 +361,23 @@ export const ChatHeader = memo(function ChatHeader({
361361 data-chat-header-actions
362362 onContextMenu = { handleHeaderActionsContextMenu }
363363 className = { cn (
364- "flex shrink-0 items-center justify-end gap-2 @3xl/header-actions:gap-3" ,
364+ "flex h-full min-w-6 shrink-0 items-center justify-end gap-2 @3xl/header-actions:gap-3" ,
365365 rightPanelOpen ? "pr-0" : "pr-16" ,
366366 ) }
367367 >
368- { visibility . scripts && activeProjectScripts && (
369- < ProjectScriptsControl
370- scripts = { activeProjectScripts }
371- fileScripts = { fileScripts }
372- keybindings = { keybindings }
373- preferredScriptId = { preferredScriptId }
374- onRunScript = { onRunProjectScript }
375- onAddScript = { onAddProjectScript }
376- onUpdateScript = { onUpdateProjectScript }
377- onDeleteScript = { onDeleteProjectScript }
378- />
368+ { activeProjectScripts && (
369+ < div className = { cn ( ! visibility . scripts && "hidden" ) } >
370+ < ProjectScriptsControl
371+ scripts = { activeProjectScripts }
372+ fileScripts = { fileScripts }
373+ keybindings = { keybindings }
374+ preferredScriptId = { preferredScriptId }
375+ onRunScript = { onRunProjectScript }
376+ onAddScript = { onAddProjectScript }
377+ onUpdateScript = { onUpdateProjectScript }
378+ onDeleteScript = { onDeleteProjectScript }
379+ />
380+ </ div >
379381 ) }
380382 { showOpenInPicker && (
381383 < div className = { cn ( ! visibility . openIn && "hidden" ) } >
@@ -387,13 +389,15 @@ export const ChatHeader = memo(function ChatHeader({
387389 />
388390 </ div >
389391 ) }
390- { visibility . git && activeProjectName && (
391- < GitActionsControl
392- gitCwd = { gitCwd }
393- activeThreadRef = { scopeThreadRef ( activeThreadEnvironmentId , activeThreadId ) }
394- onOpenPullRequest = { onOpenPullRequest }
395- { ...( draftId ? { draftId } : { } ) }
396- />
392+ { activeProjectName && (
393+ < div className = { cn ( ! visibility . git && "hidden" ) } >
394+ < GitActionsControl
395+ gitCwd = { gitCwd }
396+ activeThreadRef = { scopeThreadRef ( activeThreadEnvironmentId , activeThreadId ) }
397+ onOpenPullRequest = { onOpenPullRequest }
398+ { ...( draftId ? { draftId } : { } ) }
399+ />
400+ </ div >
397401 ) }
398402 </ div >
399403 </ div >
0 commit comments