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