This commit is contained in:
liubiren 2026-07-23 20:11:05 +08:00
commit b9fa4109f4
1 changed files with 8 additions and 1 deletions

View File

@ -794,17 +794,24 @@ def render_conversation_history_collapse_button(
def render_conversation() -> rx.Component: def render_conversation() -> rx.Component:
""" """
渲染会话页面布局参考 MetaChat左侧为折叠面板右侧为展示和操作区其中若对话历史为空则展示欢迎文案否则展示对话历史 渲染会话页面布局参考 MetaChat左侧为折叠面板右侧为工作区其中工作区包含展示区和操作区若对话历史为空则展示欢迎文案否则展示对话历史
""" """
# 会话历史展示状态 # 会话历史展示状态
is_conversation_history_shown = ConversationState.is_conversation_history_shown is_conversation_history_shown = ConversationState.is_conversation_history_shown
return rx.box( return rx.box(
rx.hstack( rx.hstack(
<<<<<<< HEAD
# 会话历史折叠面板 # 会话历史折叠面板
conversation_history_collapse(is_conversation_history_shown), conversation_history_collapse(is_conversation_history_shown),
# 工作台 # 工作台
workbench(), workbench(),
=======
# 渲染折叠面板
render_collapse(is_conversation_history_shown),
# 渲染工作区
render_workplace(),
>>>>>>> 7f6a992830604a43946173a1d6573aa63f835d55
position="relative", position="relative",
display="flex", display="flex",
flex="1", flex="1",