From 21ddcd3c39be56ad35a1bb98cf9e0b45e3f96d00 Mon Sep 17 00:00:00 2001 From: balibabu Date: Fri, 1 Aug 2025 20:21:19 +0800 Subject: [PATCH] Feat: Adjust the style of the note node #3221 (#9167) ### What problem does this PR solve? Feat: Adjust the style of the note node #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality) --- web/public/iconfont.js | 2 +- web/src/components/icon-font.tsx | 2 +- web/src/components/xyflow/base-node.tsx | 2 +- web/src/locales/en.ts | 1 + web/src/locales/zh.ts | 2 ++ web/src/pages/agent/canvas/node/node-wrapper.tsx | 2 +- web/src/pages/agent/canvas/node/note-node/index.tsx | 7 ++++--- web/src/pages/agent/canvas/node/resize-icon.tsx | 6 +++--- web/src/pages/agent/constant.tsx | 1 + web/src/pages/agent/log-sheet/workFlowTimeline.tsx | 4 ++-- web/src/pages/agent/operator-icon.tsx | 2 +- web/src/pages/agents/create-agent-form.tsx | 4 ++-- web/tailwind.config.js | 1 + web/tailwind.css | 3 +++ 14 files changed, 24 insertions(+), 15 deletions(-) diff --git a/web/public/iconfont.js b/web/public/iconfont.js index 94672574f..d717db4d5 100644 --- a/web/public/iconfont.js +++ b/web/public/iconfont.js @@ -1,5 +1,5 @@ (window._iconfont_svg_string_4909832 = - ''), + ''), ((h) => { var a = (l = (l = document.getElementsByTagName('script'))[ l.length - 1 diff --git a/web/src/components/icon-font.tsx b/web/src/components/icon-font.tsx index 3344da258..a0b9a8e12 100644 --- a/web/src/components/icon-font.tsx +++ b/web/src/components/icon-font.tsx @@ -8,7 +8,7 @@ type IconFontType = { }; export const IconFont = ({ name, className }: IconFontType) => ( - + ); diff --git a/web/src/components/xyflow/base-node.tsx b/web/src/components/xyflow/base-node.tsx index 222afdaa1..accfb4b42 100644 --- a/web/src/components/xyflow/base-node.tsx +++ b/web/src/components/xyflow/base-node.tsx @@ -9,7 +9,7 @@ export const BaseNode = forwardRef<
) { return ( -
+
@@ -67,6 +67,7 @@ function NoteNode({ data, id, selected }: NodeProps) { placeholder={t('flow.notePlaceholder')} {...field} type="text" + className="bg-transparent border-none focus-visible:outline focus-visible:outline-text-sub-title" /> @@ -86,7 +87,7 @@ function NoteNode({ data, id, selected }: NodeProps) {