From c774bc0f6dba028d44c31f4d1a892c7ca823e4f7 Mon Sep 17 00:00:00 2001 From: Luckyu_js <11670186+luckyu-js@user.noreply.gitee.com> Date: Tue, 14 Jul 2026 11:35:43 +0800 Subject: [PATCH] =?UTF-8?q?ui=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/media/MediaAnnotationToolbar.tsx | 15 ++++++++------- src/components/media/MediaInpaintingToolbar.tsx | 17 +++++++++-------- src/components/nodes/NodeActionCapsule.tsx | 6 +++--- 3 files changed, 20 insertions(+), 18 deletions(-) diff --git a/src/components/media/MediaAnnotationToolbar.tsx b/src/components/media/MediaAnnotationToolbar.tsx index 3e56e219..3d9cb54e 100644 --- a/src/components/media/MediaAnnotationToolbar.tsx +++ b/src/components/media/MediaAnnotationToolbar.tsx @@ -81,11 +81,12 @@ export function MediaAnnotationToolbar({ left: centerX, top: frameRect.top, transform: "translate(-50%, calc(-100% - 10px))", - maxWidth: `min(${Math.max(frameRect.width, 360)}px, calc(100vw - 32px))`, + width: "max-content", + maxWidth: "calc(100vw - 32px)", } as CSSProperties; const toolButtonClass = (active: boolean) => - `!h-9 !w-9 !rounded-md ${active ? "!bg-[var(--surface-hover)] !text-[var(--text-primary)]" : "!text-[var(--text-secondary)]"}`; + `!h-9 !w-9 !shrink-0 !rounded-md ${active ? "!bg-[var(--surface-hover)] !text-[var(--text-primary)]" : "!text-[var(--text-secondary)]"}`; const colorPopover = (