diff --git a/app/canvas/[id]/page.tsx b/app/canvas/[id]/page.tsx index a32366961..c845dcdb7 100644 --- a/app/canvas/[id]/page.tsx +++ b/app/canvas/[id]/page.tsx @@ -82,6 +82,7 @@ const SIZE_PRESETS = [ const FLOATING_PANEL_WIDTH = 460; const FLOATING_PANEL_INSET = 16; const FLOATING_UI_GAP = 16; +const FLOATING_BOTTOM_INSET = 20; export default function CanvasEditorPage({ params }: PageProps) { // 使用 useParams 确保客户端导航时能正确获取更新的 id @@ -155,7 +156,7 @@ export default function CanvasEditorPage({ params }: PageProps) { : FLOATING_PANEL_WIDTH; const panelOcclusionRight = isPanelOpen ? resolvedPanelWidth + FLOATING_PANEL_INSET : 0; const floatingToolbarOffset = isPanelOpen ? -(panelOcclusionRight / 2) : 0; - const compactControlsRight = isPanelOpen ? panelOcclusionRight + FLOATING_UI_GAP : FLOATING_UI_GAP; + const compactControlsLeft = FLOATING_UI_GAP; // 加载画布数据 useEffect(() => { @@ -710,7 +711,7 @@ export default function CanvasEditorPage({ params }: PageProps) { {/* 5. Floating Toolbar (Bottom) */} -