This commit is contained in:
liubiren 2026-07-10 01:16:18 +08:00
parent a4dc4ce40e
commit bfd281f17e
2 changed files with 12 additions and 2 deletions

View File

@ -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",
},
},
)

View File

@ -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",