The best way to control Claude Code, Codex and more from any computer or phone
fix(web): workspace page headers can no longer grow past the top-bar height (#17086)
Co-authored-by: maria-rcks <254055478+maria-rcks@users.noreply.github.com>
maria committed
Oct 8, 2026 at 03:18 UTC
73e097b8c86000ddc4b38926ba86e1595109d78e
2 files changed
+6
-5
apps/web/src/components/WorkspacePageHeader.tsx
+5
-2
@@ -3,7 +3,10 @@ import type { ComponentPropsWithoutRef } from "react";
3
import { cn } from "../lib/utils";
4
import { COLLAPSED_SIDEBAR_TITLEBAR_INSET_CLASS } from "../workspaceTitlebar";
5
6
-/** Shared workspace top-bar geometry. */
6
+/**
7
+ * Shared workspace top-bar geometry. The height is `!important` so callers cannot
8
+ * grow the bar and pull its content off the sidebar header's center line.
9
+ */
10
export function WorkspacePageHeader({
11
electron = false,
12
reserveNativeControls = electron,
@@ -16,7 +19,7 @@ export function WorkspacePageHeader({
19
return (
20
<header
21
className={cn(
19
- "flex h-[var(--workspace-topbar-height)] min-h-[var(--workspace-topbar-height)] shrink-0 items-center gap-3 pl-(--workspace-gutter-start) pr-(--workspace-gutter-end) [[data-panel-animations=true]_&]:motion-safe:transition-[padding-left,padding-right] [[data-panel-animations=true]_&]:motion-safe:duration-(--panel-animation-duration) [[data-panel-animations=true]_&]:motion-safe:ease-out",
22
+ "flex h-[var(--workspace-topbar-height)]! min-h-[var(--workspace-topbar-height)]! max-h-[var(--workspace-topbar-height)]! shrink-0 items-center gap-3 pl-(--workspace-gutter-start) pr-(--workspace-gutter-end) [[data-panel-animations=true]_&]:motion-safe:transition-[padding-left,padding-right] [[data-panel-animations=true]_&]:motion-safe:duration-(--panel-animation-duration) [[data-panel-animations=true]_&]:motion-safe:ease-out",
23
electron && "drag-region",
24
reserveNativeControls && "wco:pr-(--workspace-native-controls-inset)",
25
COLLAPSED_SIDEBAR_TITLEBAR_INSET_CLASS,
apps/web/src/components/usage/UsagePage.tsx
+1
-3
@@ -467,9 +467,7 @@ export function UsagePage() {
467
return (
468
<SidebarInset className="h-dvh min-h-0 overflow-hidden overscroll-y-none isolate">
469
<div className="flex min-h-0 min-w-0 flex-1 flex-col bg-background text-foreground">
470
- <WorkspacePageHeader electron={isElectron} className="h-auto">
471
- {topbarContent}
472
- </WorkspacePageHeader>
470
+ <WorkspacePageHeader electron={isElectron}>{topbarContent}</WorkspacePageHeader>
471
472
<ScrollArea className="min-h-0 flex-1">
473
<WorkspacePageContainer width="wide">