= ({
style={headerRightPadding > 0 ? { paddingRight: headerRightPadding } : undefined}
data-testid="workspace-header"
className={cn(
- "bg-sidebar border-border-light flex items-center justify-between border-b px-[15px] [@media(max-width:768px)]:h-auto [@media(max-width:768px)]:flex-wrap [@media(max-width:768px)]:gap-2 [@media(max-width:768px)]:py-2",
+ "bg-sidebar border-border-light flex items-center justify-between border-b px-[15px] [@media(max-width:768px)]:sticky [@media(max-width:768px)]:top-0 [@media(max-width:768px)]:z-10 [@media(max-width:768px)]:h-auto [@media(max-width:768px)]:flex-wrap [@media(max-width:768px)]:gap-2 [@media(max-width:768px)]:py-2 [@media(max-width:768px)]:pt-[calc(env(safe-area-inset-top,0px)+0.5rem)]",
isDesktop ? DESKTOP_TITLEBAR_HEIGHT_CLASS : "h-8",
// In desktop mode, make header draggable for window movement
isDesktop && "titlebar-drag"
diff --git a/src/browser/components/WorkspaceShell.tsx b/src/browser/components/WorkspaceShell.tsx
index 18fbe03412..dddba5a0c4 100644
--- a/src/browser/components/WorkspaceShell.tsx
+++ b/src/browser/components/WorkspaceShell.tsx
@@ -32,7 +32,7 @@ const WorkspacePlaceholder: React.FC<{
}> = (props) => (
= (props) => {
return (
= (props) => {
onOpenTerminal={handleOpenTerminal}
/>
-
+
+
+