From a1ec45fdd1fcafc61bf09014a0fca535a9863377 Mon Sep 17 00:00:00 2001 From: JzoNg Date: Thu, 21 Mar 2024 17:47:01 +0800 Subject: [PATCH] fix style of message log operation --- web/app/components/app/chat/answer/index.tsx | 8 ++++---- web/app/components/app/chat/log/index.tsx | 6 +++--- web/app/components/base/chat/chat/answer/index.tsx | 2 +- web/app/components/base/chat/chat/answer/operation.tsx | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/web/app/components/app/chat/answer/index.tsx b/web/app/components/app/chat/answer/index.tsx index 124f32b913..561c9d3b9e 100644 --- a/web/app/components/app/chat/answer/index.tsx +++ b/web/app/components/app/chat/answer/index.tsx @@ -248,8 +248,8 @@ const Answer: FC = ({ ) } -
-
+
+
{(isResponding && (isAgentMode ? (!content && (agent_thoughts || []).filter(item => !!item.thought || !!item.tool).length === 0) : !content)) @@ -311,7 +311,7 @@ const Answer: FC = ({ ) }
-
+
{!item.isOpeningStatement && ( = ({ /> )} {((isShowPromptLog && !isResponding) || (!item.isOpeningStatement && isShowTextToSpeech)) && ( -
+
{isShowPromptLog && !isResponding && ( )} diff --git a/web/app/components/app/chat/log/index.tsx b/web/app/components/app/chat/log/index.tsx index 1c32c62fdc..34b8440add 100644 --- a/web/app/components/app/chat/log/index.tsx +++ b/web/app/components/app/chat/log/index.tsx @@ -16,7 +16,7 @@ const Log: FC = ({ return (
{ e.stopPropagation() e.nativeEvent.stopImmediatePropagation() @@ -27,8 +27,8 @@ const Log: FC = ({ setShowPromptLogModal(true) }} > - -
{runID ? t('appLog.viewLog') : t('appLog.promptLog')}
+ +
{runID ? t('appLog.viewLog') : t('appLog.promptLog')}
) } diff --git a/web/app/components/base/chat/chat/answer/index.tsx b/web/app/components/base/chat/chat/answer/index.tsx index 39737df555..8c75a1bde6 100644 --- a/web/app/components/base/chat/chat/answer/index.tsx +++ b/web/app/components/base/chat/chat/answer/index.tsx @@ -69,7 +69,7 @@ const Answer: FC = ({ ) }
-
+
= ({ } return ( -
+
{!isOpeningStatement && ( = ({ )} {!isOpeningStatement && ( -
+
{showPromptLog && ( )}