From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001
From: wwf <yearningwang@iqtogether.com>
Date: 星期三, 04 六月 2025 15:17:49 +0800
Subject: [PATCH] 初始化

---
 app/components/workflow/panel/chat-record/index.tsx |   22 ++++++++++++----------
 1 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/app/components/workflow/panel/chat-record/index.tsx b/app/components/workflow/panel/chat-record/index.tsx
index bf8a061..2c76e89 100644
--- a/app/components/workflow/panel/chat-record/index.tsx
+++ b/app/components/workflow/panel/chat-record/index.tsx
@@ -68,7 +68,7 @@
         setChatItemTree(tree)
         setThreadChatItems(getThreadMessages(tree, newAllChatItems.at(-1)?.id))
       }
-      catch {
+      catch (e) {
       }
       finally {
         setFetched(true)
@@ -86,31 +86,33 @@
 
   return (
     <div
-      className='flex h-full w-[420px] flex-col rounded-l-2xl border border-components-panel-border bg-chatbot-bg shadow-xl'
-      // style={{
-      //   background: 'linear-gradient(156deg, rgba(242, 244, 247, 0.80) 0%, rgba(242, 244, 247, 0.00) 99.43%), var(--white, #FFF)',
-      // }}
+      className={`
+        flex flex-col w-[420px] rounded-l-2xl h-full border border-black/2 shadow-xl
+      `}
+      style={{
+        background: 'linear-gradient(156deg, rgba(242, 244, 247, 0.80) 0%, rgba(242, 244, 247, 0.00) 99.43%), var(--white, #FFF)',
+      }}
     >
       {!fetched && (
-        <div className='flex h-full items-center justify-center'>
+        <div className='flex items-center justify-center h-full'>
           <Loading />
         </div>
       )}
       {fetched && (
         <>
-          <div className='flex shrink-0 items-center justify-between p-4 pb-1 text-base font-semibold text-text-primary'>
+          <div className='shrink-0 flex items-center justify-between p-4 pb-1 text-base font-semibold text-gray-900'>
             {`TEST CHAT#${historyWorkflowData?.sequence_number}`}
             <div
-              className='flex h-6 w-6 cursor-pointer items-center justify-center'
+              className='flex justify-center items-center w-6 h-6 cursor-pointer'
               onClick={() => {
                 handleLoadBackupDraft()
                 workflowStore.setState({ historyWorkflowData: undefined })
               }}
             >
-              <RiCloseLine className='h-4 w-4 text-text-tertiary' />
+              <RiCloseLine className='w-4 h-4 text-gray-500' />
             </div>
           </div>
-          <div className='h-0 grow'>
+          <div className='grow h-0'>
             <Chat
               config={{
                 supportCitationHitInfo: true,

--
Gitblit v1.8.0