From 601900f933ed2e5166674288d448fe707bda5ece Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 24 Jan 2026 21:48:05 +0800 Subject: [PATCH] fix: adjust canvas UI layout - vertical toolbar and header position --- app/canvas/[id]/page.tsx | 44 ++++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/app/canvas/[id]/page.tsx b/app/canvas/[id]/page.tsx index d94ae4ff9..1e24160b0 100644 --- a/app/canvas/[id]/page.tsx +++ b/app/canvas/[id]/page.tsx @@ -369,7 +369,7 @@ export default function CanvasEditorPage({ params }: PageProps) { {/* 2. Floating Header (Top Left) */} -
+
{/* 3. Floating Actions (Top Right) */} -
+
{/* Panel Toggle */} @@ -457,7 +457,7 @@ export default function CanvasEditorPage({ params }: PageProps) { {/* 4. Floating Sidebar (Right) */}
@@ -641,8 +641,8 @@ export default function CanvasEditorPage({ params }: PageProps) {
{/* 5. Floating Bottom Toolbar (Left) */} -
-
+
+
{/* Tools: Select, Pan, Add Text, Add Image, Add Video */} @@ -655,7 +655,7 @@ export default function CanvasEditorPage({ params }: PageProps) { - 选择 (V) + 选择 (V) @@ -669,10 +669,10 @@ export default function CanvasEditorPage({ params }: PageProps) { - 平移 (H) + 平移 (H) - + @@ -680,7 +680,7 @@ export default function CanvasEditorPage({ params }: PageProps) { - 添加文本 + 添加文本 @@ -689,7 +689,7 @@ export default function CanvasEditorPage({ params }: PageProps) { - 添加图片 + 添加图片 @@ -698,10 +698,10 @@ export default function CanvasEditorPage({ params }: PageProps) { - + @@ -709,7 +709,7 @@ export default function CanvasEditorPage({ params }: PageProps) { - 撤销 + 撤销 @@ -718,22 +718,22 @@ export default function CanvasEditorPage({ params }: PageProps) { - 重做 + 重做 - + {/* Zoom Controls */} -
- - - {Math.round(viewport.zoom * 100)}% - +
+ + {Math.round(viewport.zoom * 100)}% + +