From c02db54635fdeae524366ceae809f8f2ef5301b7 Mon Sep 17 00:00:00 2001 From: ddCat <2695092045@qq.com> Date: Sat, 22 Aug 2026 13:51:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(canvas):=20=E7=94=BB=E5=B8=83=E6=B5=AE?= =?UTF-8?q?=E5=B1=82=20-=20=E4=BF=AE=E5=A4=8D=E5=B0=8F=E5=9C=B0=E5=9B=BE?= =?UTF-8?q?=E5=AE=9A=E4=BD=8D=E5=B9=B6=E5=BC=B1=E5=8C=96=E5=8D=A1=E7=89=87?= =?UTF-8?q?=E8=BE=B9=E7=95=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/canvas/canvas-asset-tray.tsx | 27 +++++++++---------- web/src/components/canvas/canvas-mini-map.tsx | 4 +-- web/src/components/canvas/canvas-node.tsx | 3 ++- web/src/styles/globals.css | 13 ++++++--- 4 files changed, 27 insertions(+), 20 deletions(-) diff --git a/web/src/components/canvas/canvas-asset-tray.tsx b/web/src/components/canvas/canvas-asset-tray.tsx index b0f9cf901..d903ee815 100644 --- a/web/src/components/canvas/canvas-asset-tray.tsx +++ b/web/src/components/canvas/canvas-asset-tray.tsx @@ -187,17 +187,16 @@ export function CanvasAssetTray({ assetImages, canvasImages, showLibrary = true, exit={{ opacity: 0, y: 14, scale: 0.95, rotateX: 3 }} transition={aceternityMotion.spring.panel} ref={panelRef} - className="canvas-asset-tray-panel aceternity-floating-panel absolute bottom-[var(--canvas-dock-popover-offset)] left-0 flex w-[min(88vw,312px)] origin-bottom-left flex-col overflow-hidden rounded-[var(--r-2xl)] border p-2.5 backdrop-blur-2xl" - style={{ background: theme.spatial.elevated, borderColor: theme.toolbar.border, color: theme.node.text, height: safeTrayHeight, minHeight: Math.min(TRAY_MIN_HEIGHT, getMaxTrayHeight()), maxHeight: "calc(100vh - 6rem)", boxShadow: `0 32px 100px ${theme.spatial.shadow}` }} + className="canvas-asset-tray-panel aceternity-floating-panel absolute bottom-[var(--canvas-dock-popover-offset)] left-0 flex w-[min(88vw,312px)] origin-bottom-left flex-col overflow-hidden rounded-[var(--r-2xl)] p-2.5 backdrop-blur-2xl" + style={{ background: theme.spatial.elevated, color: theme.node.text, height: safeTrayHeight, minHeight: Math.min(TRAY_MIN_HEIGHT, getMaxTrayHeight()), maxHeight: "calc(100vh - 6rem)", boxShadow: `0 32px 100px ${theme.spatial.shadow}` }} > -
- + @@ -205,17 +204,17 @@ export function CanvasAssetTray({ assetImages, canvasImages, showLibrary = true, 拖入画布,或定位已经使用的图片
- setOpen(false)} aria-label="收起素材空间"> + setOpen(false)} aria-label="收起素材空间">
-
+
{showLibrary ? setTab("library")} /> : null} setTab("canvas")} />
-