From be7f61bb76bba7122f1b31a76f7a7d0bf90c0b90 Mon Sep 17 00:00:00 2001 From: rd <1344903914@qq.com> Date: Thu, 28 Aug 2025 16:05:17 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/xt-chat/chat-view/useChatHandler.tsx | 5 ++--- src/components/xt-chat/xt-conversations/style.scss | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/xt-chat/chat-view/useChatHandler.tsx b/src/components/xt-chat/chat-view/useChatHandler.tsx index 1f75ba9..1950f67 100644 --- a/src/components/xt-chat/chat-view/useChatHandler.tsx +++ b/src/components/xt-chat/chat-view/useChatHandler.tsx @@ -226,7 +226,7 @@ export default function useChatHandler(options: UseChatHandlerOptions): UseChatH )} )} - {isCollapse ? ( + {isCollapse && (
@@ -234,9 +234,8 @@ export default function useChatHandler(options: UseChatHandlerOptions): UseChatH
- ) : ( - customRender?.() )} + {customRender?.()} ); }, diff --git a/src/components/xt-chat/xt-conversations/style.scss b/src/components/xt-chat/xt-conversations/style.scss index 59c9b5e..46fb267 100644 --- a/src/components/xt-chat/xt-conversations/style.scss +++ b/src/components/xt-chat/xt-conversations/style.scss @@ -1,7 +1,7 @@ .xt-conversations-container { width: 100%; height: 100%; - overflow-y: auto; + // overflow-y: auto; :deep(.overflow-text) { color: var(--Text-1, #211f24); font-family: $font-family-regular;