@devries-cameron20 / t3code-1 / commits / eeea71a881
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(web): make the empty workspace draggable on desktop (#13713)

Otavio Salvador committed Sep 26, 2026 at 00:56 UTC eeea71a88108c375c04853f58c298a518a54acaf
2 files changed +5
apps/web/src/components/NoProjectsHero.tsx
+4
@@ -2,9 +2,11 @@ import { PlusIcon } from "lucide-react";
2 import { useCallback } from "react";
3
4 import { openCommandPalette } from "../commandPaletteBus";
5 +import { isElectron } from "../env";
6 import { Button } from "./ui/button";
7 import { Empty, EmptyDescription, EmptyHeader, EmptyTitle } from "./ui/empty";
8 import { SidebarInset } from "./ui/sidebar";
9 +import { WorkspacePageHeader } from "./WorkspacePageHeader";
10
11 export function NoProjectsHero() {
12 const openAddProject = useCallback(() => openCommandPalette({ open: "add-project" }), []);
@@ -12,6 +14,8 @@ export function NoProjectsHero() {
14 return (
15 <SidebarInset className="h-dvh min-h-0 overflow-hidden overscroll-y-none">
16 <div className="flex min-h-0 min-w-0 flex-1 flex-col overflow-x-hidden bg-background">
17 + {/* The desktop window only moves where CSS opts in, so keep a titlebar strip. */}
18 + {isElectron ? <WorkspacePageHeader electron /> : null}
19 <Empty size="hero" className="flex-1">
20 <div className="w-full max-w-lg px-8 py-12">
21 <EmptyHeader className="max-w-none">
apps/web/src/routes/_chat.index.tsx
+1
@@ -91,6 +91,7 @@ function IndexDraftLanding() {
91 function DraftStartError({ onRetry }: { readonly onRetry: () => void }) {
92 return (
93 <SidebarInset className="h-dvh min-h-0 overflow-hidden overscroll-y-none">
94 + {isElectron ? <WorkspacePageHeader electron /> : null}
95 <Empty className="flex-1">
96 <EmptyHeader className="max-w-md">
97 <EmptyTitle>Couldn’t start a new thread</EmptyTitle>