From ef8c10c0561d21f484bf188e6bc9c1b890a29898 Mon Sep 17 00:00:00 2001 From: rd <1344903914@qq.com> Date: Tue, 2 Sep 2025 10:10:03 +0800 Subject: [PATCH] =?UTF-8?q?style:=20markdown=E8=BF=94=E5=9B=9Epre=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E6=8D=A2=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xt-chat/chat-view/useChatHandler.tsx | 8 +- src/components/xt-chat/xt-bubble/style.scss | 83 ++++++++++--------- 2 files changed, 47 insertions(+), 44 deletions(-) diff --git a/src/components/xt-chat/chat-view/useChatHandler.tsx b/src/components/xt-chat/chat-view/useChatHandler.tsx index fb3a192..4dca3cb 100644 --- a/src/components/xt-chat/chat-view/useChatHandler.tsx +++ b/src/components/xt-chat/chat-view/useChatHandler.tsx @@ -106,7 +106,7 @@ export default function useChatHandler(options: UseChatHandlerOptions): UseChatH variant: 'borderless', style: ROLE_STYLE, messageRender: (message: string) => { - return
; + return ; }, footer: (params) => { const { content, item } = params as { content: string; item: MESSAGE.Answer }; @@ -223,7 +223,7 @@ export default function useChatHandler(options: UseChatHandlerOptions): UseChatH const { node, output, runStatus, isCollapse = true, customRender, teamRunTaskId } = data; const isRulCompleted = runStatus === EnumTeamRunStatus.RunCompleted; - let outputEleClass: string = `thought-chain-output border-l-#E6E6E8 border-l-1px pl-12px relative left-8px mb-4px`; + let outputEleClass: string = `thought-chain-output border-l-#E6E6E8 border-l-1px pl-12px relative left-8px mb-4px markdown-wrap`; !isLastRunTask(data) && (outputEleClass += ' hasLine pb-12px pt-4px'); return ( @@ -289,7 +289,7 @@ export default function useChatHandler(options: UseChatHandlerOptions): UseChatH output: data.output, role: ANSWER_ROLE, messageRender: (data: MESSAGE.Answer) => { - return ; + return ; }, }); }; @@ -328,7 +328,7 @@ export default function useChatHandler(options: UseChatHandlerOptions): UseChatH _targetTask.content.customRender = () => { return ( <> - + {_targetData && (