Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

fix(web): align mobile onboarding header (#6293)

t3-code[bot]6fd088af9f77
diff --git a/apps/web/src/routes/-chatIndexTitlebar.test.ts b/apps/web/src/routes/-chatIndexTitlebar.test.ts
new file mode 100644
index 000000000..5e74103a5
--- /dev/null
+++ b/apps/web/src/routes/-chatIndexTitlebar.test.ts
@@ -0,0 +1,20 @@
+// @effect-diagnostics nodeBuiltinImport:off - Regression coverage compares the onboarding header with the shared titlebar contract.
+import * as NodeFS from "node:fs";
+
+import { describe, expect, it } from "vite-plus/test";
+
+describe("hosted static onboarding header", () => {
+ it("uses the shared workspace topbar geometry", () => {
+ const routeSource = NodeFS.readFileSync(new URL("./_chat.index.tsx", import.meta.url), "utf8");
+ const onboardingStart = routeSource.indexOf("function HostedStaticOnboardingState()");
+ const onboardingEnd = routeSource.indexOf('<Empty className="flex-1">', onboardingStart);
+
+ expect(onboardingStart).toBeGreaterThanOrEqual(0);
+ expect(onboardingEnd).toBeGreaterThan(onboardingStart);
+
+ const onboardingHeader = routeSource.slice(onboardingStart, onboardingEnd);
+
+ expect(onboardingHeader).toContain("workspace-topbar");
+ expect(onboardingHeader).not.toMatch(/(?:^|\s)(?:[\w-]+:)*py-/);
+ });
+});
diff --git a/apps/web/src/routes/_chat.index.tsx b/apps/web/src/routes/_chat.index.tsx
index 6e8dbe33f..12bbdf666 100644
--- a/apps/web/src/routes/_chat.index.tsx
+++ b/apps/web/src/routes/_chat.index.tsx
@@ -145,7 +145,7 @@ function HostedStaticOnboardingState() {
<div className="flex min-h-0 min-w-0 flex-1 flex-col overflow-x-hidden bg-background">
<header
className={cn(
- "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",
+ "workspace-topbar border-b border-border px-3 transition-[padding-left] duration-200 ease-linear motion-reduce:transition-none sm:px-5",
COLLAPSED_SIDEBAR_TITLEBAR_INSET_CLASS,
)}
>