| ... | @@ -2,9 +2,11 @@ import { PlusIcon } from "lucide-react"; | ... | @@ -2,9 +2,11 @@ import { PlusIcon } from "lucide-react"; |
| 2 | import { useCallback } from "react"; | 2 | import { useCallback } from "react"; |
| 3 | | 3 | |
| 4 | import { openCommandPalette } from "../commandPaletteBus"; | 4 | import { openCommandPalette } from "../commandPaletteBus"; |
| | 5 | import { isElectron } from "../env"; |
| 5 | import { Button } from "./ui/button"; | 6 | import { Button } from "./ui/button"; |
| 6 | import { Empty, EmptyDescription, EmptyHeader, EmptyTitle } from "./ui/empty"; | 7 | import { Empty, EmptyDescription, EmptyHeader, EmptyTitle } from "./ui/empty"; |
| 7 | import { SidebarInset } from "./ui/sidebar"; | 8 | import { SidebarInset } from "./ui/sidebar"; |
| | 9 | import { WorkspacePageHeader } from "./WorkspacePageHeader"; |
| 8 | | 10 | |
| 9 | export function NoProjectsHero() { | 11 | export function NoProjectsHero() { |
| 10 | const openAddProject = useCallback(() => openCommandPalette({ open: "add-project" }), []); | 12 | const openAddProject = useCallback(() => openCommandPalette({ open: "add-project" }), []); |
| ... | @@ -12,6 +14,8 @@ export function NoProjectsHero() { | ... | @@ -12,6 +14,8 @@ export function NoProjectsHero() { |
| 12 | return ( | 14 | return ( |
| 13 | <SidebarInset className="h-dvh min-h-0 overflow-hidden overscroll-y-none"> | 15 | <SidebarInset className="h-dvh min-h-0 overflow-hidden overscroll-y-none"> |
| 14 | <div className="flex min-h-0 min-w-0 flex-1 flex-col overflow-x-hidden bg-background"> | 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} |
| 15 | <Empty size="hero" className="flex-1"> | 19 | <Empty size="hero" className="flex-1"> |
| 16 | <div className="w-full max-w-lg px-8 py-12"> | 20 | <div className="w-full max-w-lg px-8 py-12"> |
| 17 | <EmptyHeader className="max-w-none"> | 21 | <EmptyHeader className="max-w-none"> |