Skip to content

Commit 2bb3a32

Browse files
committed
feat: enhance CanvasEditor with zoomable MiniMap and updated Background variant; adjust project list item height
1 parent c95a5c8 commit 2bb3a32

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

frontend/src/components/canvas-view.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,8 +571,13 @@ function CanvasEditor({ project, onBack }: CanvasViewProps) {
571571
maxZoom={2}
572572
proOptions={{ hideAttribution: true }}
573573
>
574-
<MiniMap pannable />
575-
<Background variant={BackgroundVariant.Cross} gap={12} size={1} />
574+
<MiniMap pannable zoomable />
575+
<Background
576+
className="dark:opacity-30"
577+
variant={BackgroundVariant.Dots}
578+
gap={12}
579+
size={1}
580+
/>
576581
</ReactFlow>
577582
</div>
578583

frontend/src/components/project-list.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export function ProjectList({ onProjectClick }: ProjectListProps) {
5959
className="group cursor-pointer overflow-hidden rounded-xl border-2 border-dashed transition-all hover:shadow-lg hover:border-primary/50"
6060
onClick={handleCreateProject}
6161
>
62-
<div className="h-full flex items-center justify-center bg-linear-to-br from-muted to-muted/50 min-h-[200px]">
62+
<div className="h-full flex items-center justify-center bg-linear-to-br from-muted to-muted/50 min-h-50">
6363
<div className="flex flex-col items-center justify-center gap-2">
6464
<div className="flex h-16 w-16 items-center justify-center rounded-full bg-primary/10 transition-all group-hover:bg-primary/20 group-hover:scale-110">
6565
<Plus className="h-8 w-8 text-primary" />

frontend/src/components/ui/dialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function DialogFooter({
9898
<div
9999
data-slot="dialog-footer"
100100
className={cn(
101-
"gap-2 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
101+
"gap-2 flex flex-col-reverse sm:flex-row sm:justify-end",
102102
className
103103
)}
104104
{...props}

frontend/src/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { ThemeProvider } from "./components/theme-provider.tsx";
88

99
createRoot(document.getElementById("root")!).render(
1010
<StrictMode>
11-
<ThemeProvider defaultTheme="dark" storageKey="vite-ui-theme">
11+
<ThemeProvider defaultTheme="system" storageKey="vite-ui-theme">
1212
<App />
1313
<Toaster position="top-center" />
1414
</ThemeProvider>

0 commit comments

Comments
 (0)