From 099746dd5909bb62eb9b3d624ee5956790933eea Mon Sep 17 00:00:00 2001 From: JzoNg Date: Thu, 19 Sep 2024 17:28:17 +0800 Subject: [PATCH] fix style of tracing --- web/app/components/workflow/panel/workflow-preview.tsx | 9 +++++---- web/app/components/workflow/run/index.tsx | 3 ++- web/app/components/workflow/run/node.tsx | 2 +- web/app/components/workflow/run/result-text.tsx | 7 ++++--- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/web/app/components/workflow/panel/workflow-preview.tsx b/web/app/components/workflow/panel/workflow-preview.tsx index 7fee3436b2..0c751f0360 100644 --- a/web/app/components/workflow/panel/workflow-preview.tsx +++ b/web/app/components/workflow/panel/workflow-preview.tsx @@ -146,8 +146,8 @@ const WorkflowPreview = () => { >{t('runLog.tracing')}
{currentTab === 'INPUT' && showInputsPanel && ( switchTab('RESULT')} /> @@ -191,18 +191,19 @@ const WorkflowPreview = () => { /> )} {currentTab === 'DETAIL' && !workflowRunningData?.result && ( -
+
)} {currentTab === 'TRACING' && ( )} {currentTab === 'TRACING' && !workflowRunningData?.tracing?.length && ( -
+
)} diff --git a/web/app/components/workflow/run/index.tsx b/web/app/components/workflow/run/index.tsx index 94d9cc41ff..9e636e902b 100644 --- a/web/app/components/workflow/run/index.tsx +++ b/web/app/components/workflow/run/index.tsx @@ -192,7 +192,7 @@ const RunPanel: FC = ({ hideResult, activeTab = 'RESULT', runID, getRe >{t('runLog.tracing')}
{/* panel detail */} -
+
{loading && (
@@ -220,6 +220,7 @@ const RunPanel: FC = ({ hideResult, activeTab = 'RESULT', runID, getRe )} {!loading && currentTab === 'TRACING' && ( diff --git a/web/app/components/workflow/run/node.tsx b/web/app/components/workflow/run/node.tsx index 1016f9f4f9..14270aa529 100644 --- a/web/app/components/workflow/run/node.tsx +++ b/web/app/components/workflow/run/node.tsx @@ -85,7 +85,7 @@ const NodePanel: FC = ({ } return (
-
+
= ({ )} {!isRunning && error && (
-
-
{error}
-
+ + {error} +
)} {!isRunning && !outputs && !error && (