From 3e4849d765bf13e7454b71d750a0d96208c615ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=9E=E6=B3=95=E6=93=8D=E4=BD=9C?= Date: Tue, 28 Apr 2026 13:02:35 +0800 Subject: [PATCH] fix: align object value remove button of chat variable (#35616) --- .../components/object-value-item.tsx | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/web/app/components/workflow/panel/chat-variable-panel/components/object-value-item.tsx b/web/app/components/workflow/panel/chat-variable-panel/components/object-value-item.tsx index 8ef7125f62..16ebd78db8 100644 --- a/web/app/components/workflow/panel/chat-variable-panel/components/object-value-item.tsx +++ b/web/app/components/workflow/panel/chat-variable-panel/components/object-value-item.tsx @@ -5,7 +5,7 @@ import { produce } from 'immer' import * as React from 'react' import { useCallback, useState } from 'react' import { useTranslation } from 'react-i18next' -import RemoveButton from '@/app/components/workflow/nodes/_base/components/remove-button' +import ActionButton from '@/app/components/base/action-button' import VariableTypeSelector from '@/app/components/workflow/panel/chat-variable-panel/components/variable-type-select' import { ChatVarType } from '@/app/components/workflow/panel/chat-variable-panel/type' @@ -116,7 +116,7 @@ const ObjectValueItem: FC = ({ {/* Value */}
= ({ type={list[index].type === ChatVarType.Number ? 'number' : 'text'} /> {list.length > 1 && !isFocus && ( - +
+ + + +
)}