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/base/chat/chat-with-history/sidebar/list.tsx | 34 ++++++++++++++++++++-------------- 1 files changed, 20 insertions(+), 14 deletions(-) diff --git a/app/components/base/chat/chat-with-history/sidebar/list.tsx b/app/components/base/chat/chat-with-history/sidebar/list.tsx index 4a9c207..a2a3e1f 100644 --- a/app/components/base/chat/chat-with-history/sidebar/list.tsx +++ b/app/components/base/chat/chat-with-history/sidebar/list.tsx @@ -19,20 +19,26 @@ currentConversationId, }) => { return ( - <div className='space-y-0.5'> - {title && ( - <div className='system-xs-medium-uppercase px-3 pb-1 pt-2 text-text-tertiary'>{title}</div> - )} - {list.map(item => ( - <Item - key={item.id} - isPin={isPin} - item={item} - onOperate={onOperate} - onChangeConversation={onChangeConversation} - currentConversationId={currentConversationId} - /> - ))} + <div> + { + title && ( + <div className='mb-0.5 px-3 h-[26px] text-xs font-medium text-gray-500'> + {title} + </div> + ) + } + { + list.map(item => ( + <Item + key={item.id} + isPin={isPin} + item={item} + onOperate={onOperate} + onChangeConversation={onChangeConversation} + currentConversationId={currentConversationId} + /> + )) + } </div> ) } -- Gitblit v1.8.0