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