From bfd281f17e913c95e0e695b4be69a7033564dacb Mon Sep 17 00:00:00 2001 From: liubiren Date: Fri, 10 Jul 2026 01:16:18 +0800 Subject: [PATCH] 1 --- agent/application/components/conversation.py | 7 ++++++- agent/application/pages/conversation.py | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/agent/application/components/conversation.py b/agent/application/components/conversation.py index 07dc685..512f672 100644 --- a/agent/application/components/conversation.py +++ b/agent/application/components/conversation.py @@ -281,7 +281,7 @@ def render_conversation_box() -> rx.Component: # 运行字典 runs = ConversationState.get_runs - # 若运行字典为空则渲染空智能体图标、名称和预设用户提示词,否则遍历渲染运行组件 + # 若运行字典为空则渲染品牌图标和名称、预设用户提示词,否则遍历渲染运行项 return rx.auto_scroll( rx.cond( ConversationState.is_runs_empty, @@ -319,6 +319,11 @@ def render_conversation_box() -> rx.Component: flex="1", padding="8px", overflow_y="auto", + style={ + "&::-webkit-scrollbar": { + "display": "none", + }, + }, ) diff --git a/agent/application/pages/conversation.py b/agent/application/pages/conversation.py index 4741658..ad6a369 100644 --- a/agent/application/pages/conversation.py +++ b/agent/application/pages/conversation.py @@ -53,7 +53,12 @@ def render_conversation_page() -> rx.Component: margin_top="8px", width="100%", align_items="stretch", - overflow="hidden", # 禁用滚动条 + overflow="auto", + style={ + "&::-webkit-scrollbar": { + "display": "none", + }, + }, ), display="flex", flex_direction="column",