From 3f4d6b9452f241fda8a18766deec9f50f8a0dfe3 Mon Sep 17 00:00:00 2001 From: Joel Date: Mon, 26 Jan 2026 11:39:47 +0800 Subject: [PATCH] fix: click readme hide config --- web/app/components/plugins/readme-panel/index.tsx | 14 ++++++++++++-- .../skill-editor/plugins/tool-block/component.tsx | 2 ++ .../tool-block/tool-group-block-component.tsx | 2 ++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/web/app/components/plugins/readme-panel/index.tsx b/web/app/components/plugins/readme-panel/index.tsx index 7cd1991322..f30bea64ba 100644 --- a/web/app/components/plugins/readme-panel/index.tsx +++ b/web/app/components/plugins/readme-panel/index.tsx @@ -87,11 +87,16 @@ const ReadmePanel: FC = () => { const portalContent = showType === ReadmeShowType.drawer ? ( -
+
{ event.stopPropagation() }} @@ -101,11 +106,16 @@ const ReadmePanel: FC = () => {
) : ( -
+
{ event.stopPropagation() }} diff --git a/web/app/components/workflow/skill/editor/skill-editor/plugins/tool-block/component.tsx b/web/app/components/workflow/skill/editor/skill-editor/plugins/tool-block/component.tsx index c56c2f0a3c..abda84bc99 100644 --- a/web/app/components/workflow/skill/editor/skill-editor/plugins/tool-block/component.tsx +++ b/web/app/components/workflow/skill/editor/skill-editor/plugins/tool-block/component.tsx @@ -281,6 +281,8 @@ const ToolBlockComponent: FC = ({ const panelEl = portalContainer?.querySelector('[data-tool-setting-panel="true"]') if (!target || !panelEl) return + if (target instanceof Element && target.closest('[data-readme-panel-root="true"], [data-readme-panel="true"]')) + return if (target instanceof Element && target.closest('[data-modal-root="true"]')) return if (panelEl.contains(target)) diff --git a/web/app/components/workflow/skill/editor/skill-editor/plugins/tool-block/tool-group-block-component.tsx b/web/app/components/workflow/skill/editor/skill-editor/plugins/tool-block/tool-group-block-component.tsx index 89135ce8e2..af2059a9fa 100644 --- a/web/app/components/workflow/skill/editor/skill-editor/plugins/tool-block/tool-group-block-component.tsx +++ b/web/app/components/workflow/skill/editor/skill-editor/plugins/tool-block/tool-group-block-component.tsx @@ -339,6 +339,8 @@ const ToolGroupBlockComponent: FC = ({ const panelEl = portalContainer?.querySelector('[data-tool-group-setting-panel="true"]') if (!target || !panelEl) return + if (target instanceof Element && target.closest('[data-readme-panel-root="true"], [data-readme-panel="true"]')) + return if (target instanceof Element && target.closest('[data-modal-root="true"]')) return if (panelEl.contains(target))