Skip to content

Commit 3b06195

Browse files
fix(web): align mobile onboarding header
Co-authored-by: Utkarsh Patil <[email protected]>
1 parent 5a84614 commit 3b06195

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// @effect-diagnostics nodeBuiltinImport:off - Regression coverage compares the onboarding header with the shared titlebar contract.
2+
import * as NodeFS from "node:fs";
3+
4+
import { describe, expect, it } from "vite-plus/test";
5+
6+
describe("hosted static onboarding header", () => {
7+
it("uses the shared workspace topbar geometry", () => {
8+
const routeSource = NodeFS.readFileSync(new URL("./_chat.index.tsx", import.meta.url), "utf8");
9+
const onboardingHeader = routeSource.slice(
10+
routeSource.indexOf("function HostedStaticOnboardingState()"),
11+
routeSource.indexOf(
12+
'<Empty className="flex-1">',
13+
routeSource.indexOf("function HostedStaticOnboardingState()"),
14+
),
15+
);
16+
17+
expect(onboardingHeader).toContain("workspace-topbar");
18+
expect(onboardingHeader).not.toMatch(/(?:^|:)py-/);
19+
});
20+
});

‎apps/web/src/routes/_chat.index.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function HostedStaticOnboardingState() {
145145
<div className="flex min-h-0 min-w-0 flex-1 flex-col overflow-x-hidden bg-background">
146146
<header
147147
className={cn(
148-
"border-b border-border px-3 py-2 transition-[padding-left] duration-200 ease-linear motion-reduce:transition-none sm:px-5 sm:py-3",
148+
"workspace-topbar border-b border-border px-3 transition-[padding-left] duration-200 ease-linear motion-reduce:transition-none sm:px-5",
149149
COLLAPSED_SIDEBAR_TITLEBAR_INSET_CLASS,
150150
)}
151151
>

0 commit comments

Comments
 (0)