@@ -169,7 +169,6 @@ import {
169169 WifiOffIcon ,
170170} from "lucide-react" ;
171171import { cn , randomHex } from "~/lib/utils" ;
172- import { COLLAPSED_SIDEBAR_TITLEBAR_INSET_CLASS } from "~/workspaceTitlebar" ;
173172import { stackedThreadToast , toastManager } from "./ui/toast" ;
174173import { decodeProjectScriptKeybindingRule } from "~/lib/projectScriptKeybindings" ;
175174import { type NewProjectScriptInput } from "./ProjectScriptsControl" ;
@@ -258,6 +257,7 @@ import { ChatHeader } from "./chat/ChatHeader";
258257import { PanelLayoutControls , RightPanelMaximizeControl } from "./chat/PanelLayoutControls" ;
259258import { type ExpandedImagePreview } from "./chat/ExpandedImagePreview" ;
260259import { NoActiveThreadState } from "./NoActiveThreadState" ;
260+ import { WorkspacePageHeader } from "./WorkspacePageContainer" ;
261261import {
262262 resolveEffectiveEnvMode ,
263263 resolveLocalCheckoutBranchMismatch ,
@@ -6211,20 +6211,11 @@ function ChatViewContent(props: ChatViewProps) {
62116211 data-chat-column-maximized-away = { rightPanelMaximized ? "true" : "false" }
62126212 >
62136213 { /* Top bar */ }
6214- < header
6214+ < WorkspacePageHeader
62156215 data-chat-header
6216- className = { cn (
6217- "bg-background transition-[padding-left] duration-200 ease-linear motion-reduce:transition-none" ,
6218- isElectron
6219- ? cn (
6220- "drag-region relative flex h-[var(--workspace-topbar-height)] min-h-[var(--workspace-topbar-height)] shrink-0 items-center px-3 sm:px-5" ,
6221- reserveTitleBarControlInset &&
6222- ! inlineRightPanelOwnsTitleBar &&
6223- "wco:pr-[var(--workspace-native-controls-inset)]" ,
6224- )
6225- : "flex h-[var(--workspace-topbar-height)] min-h-[var(--workspace-topbar-height)] shrink-0 items-center pl-[calc(env(safe-area-inset-left)+0.75rem)] pr-[calc(env(safe-area-inset-right)+0.75rem)] sm:pl-[calc(env(safe-area-inset-left)+1.25rem)] sm:pr-[calc(env(safe-area-inset-right)+1.25rem)]" ,
6226- COLLAPSED_SIDEBAR_TITLEBAR_INSET_CLASS ,
6227- ) }
6216+ electron = { isElectron }
6217+ reserveNativeControls = { reserveTitleBarControlInset && ! inlineRightPanelOwnsTitleBar }
6218+ className = "relative bg-background"
62286219 >
62296220 { ! rightPanelOpen ? panelLayoutControls : null }
62306221 < ChatHeader
@@ -6255,7 +6246,7 @@ function ChatViewContent(props: ChatViewProps) {
62556246 onUpdateProjectScript = { updateProjectScript }
62566247 onDeleteProjectScript = { deleteProjectScript }
62576248 />
6258- </ header >
6249+ </ WorkspacePageHeader >
62596250
62606251 < ThreadErrorBanner
62616252 error = { visibleThreadError }
0 commit comments