diff --git a/web/src/components/canvas/canvas-batch-table-node.tsx b/web/src/components/canvas/canvas-batch-table-node.tsx index fdb1b2b17..0265be90e 100644 --- a/web/src/components/canvas/canvas-batch-table-node.tsx +++ b/web/src/components/canvas/canvas-batch-table-node.tsx @@ -359,7 +359,7 @@ function BatchReferenceHandle({ column, index, theme, commonStyle, onConnectStar }, []); return ( - diff --git a/web/src/components/canvas/canvas-cloud-agent-chat-ui.tsx b/web/src/components/canvas/canvas-cloud-agent-chat-ui.tsx index 2ae9b5ddf..5d8f61160 100644 --- a/web/src/components/canvas/canvas-cloud-agent-chat-ui.tsx +++ b/web/src/components/canvas/canvas-cloud-agent-chat-ui.tsx @@ -1051,6 +1051,7 @@ export function AgentChatComposer({ whileTap={canSubmit && !reducedMotion ? { scale: 0.9, y: 1 } : undefined} animate={stopping && !reducedMotion ? { scale: [1, 0.94, 1] } : { scale: 1, rotate: 0 }} transition={sending && !reducedMotion ? { duration: 0.42, ease: "easeOut" } : { type: "spring", stiffness: 420, damping: 24 }} + data-icon-only className="agent-composer-send grid size-7 shrink-0 place-items-center rounded-full p-0 outline-none transition-[background-color,box-shadow,color,transform] duration-200 focus-visible:ring-2 focus-visible:ring-current/35 disabled:cursor-not-allowed" style={{ background: canSubmit || sending ? theme.accent.primary : theme.spatial.surface, diff --git a/web/src/components/canvas/canvas-cloud-agent-panel.tsx b/web/src/components/canvas/canvas-cloud-agent-panel.tsx index 3cc7bea46..9d7470930 100644 --- a/web/src/components/canvas/canvas-cloud-agent-panel.tsx +++ b/web/src/components/canvas/canvas-cloud-agent-panel.tsx @@ -1038,10 +1038,7 @@ function formatContextBytes(bytes: number | undefined) { } function AgentContextRing({ view }: { view: AgentContextUsageView }) { - const reducedMotion = useReducedMotion(); const [open, setOpen] = useState(false); - const radius = 15; - const circumference = 2 * Math.PI * radius; const marker = view.compactRatio && view.compactRatio > 0 && view.compactRatio < 1 ? view.compactRatio : undefined; const percent = view.ratio === undefined ? view.label : `${Math.round(view.ratio * 100)}%`; const meterLabel = view.ratio === undefined ? "—" : percent; @@ -1147,20 +1144,15 @@ function AgentContextRing({ view }: { view: AgentContextUsageView }) { title="查看上下文用量" onPointerDown={(event) => event.stopPropagation()} > -