| ... | ... | @@ -3,7 +3,10 @@ import type { ComponentPropsWithoutRef } from "react"; |
| 3 | 3 | import { cn } from "../lib/utils"; |
| 4 | 4 | import { COLLAPSED_SIDEBAR_TITLEBAR_INSET_CLASS } from "../workspaceTitlebar"; |
| 5 | 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 | */ |
| 7 | 10 | export function WorkspacePageHeader({ |
| 8 | 11 | electron = false, |
| 9 | 12 | reserveNativeControls = electron, |
| ... | ... | @@ -16,7 +19,7 @@ export function WorkspacePageHeader({ |
| 16 | 19 | return ( |
| 17 | 20 | <header |
| 18 | 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", |
| 20 | 23 | electron && "drag-region", |
| 21 | 24 | reserveNativeControls && "wco:pr-(--workspace-native-controls-inset)", |
| 22 | 25 | COLLAPSED_SIDEBAR_TITLEBAR_INSET_CLASS, |