Merge branch 'main' of https://gitea.liubiren.cloud/liubiren/Python
This commit is contained in:
commit
b9fa4109f4
|
|
@ -794,17 +794,24 @@ def render_conversation_history_collapse_button(
|
|||
|
||||
def render_conversation() -> rx.Component:
|
||||
"""
|
||||
渲染会话页面:布局参考 MetaChat,左侧为折叠面板,右侧为展示和操作区。其中,若对话历史为空则展示欢迎文案,否则展示对话历史
|
||||
渲染会话页面:布局参考 MetaChat,左侧为折叠面板,右侧为工作区。其中,工作区包含展示区和操作区。若对话历史为空则展示欢迎文案,否则展示对话历史
|
||||
"""
|
||||
# 会话历史展示状态
|
||||
is_conversation_history_shown = ConversationState.is_conversation_history_shown
|
||||
|
||||
return rx.box(
|
||||
rx.hstack(
|
||||
<<<<<<< HEAD
|
||||
# 会话历史折叠面板
|
||||
conversation_history_collapse(is_conversation_history_shown),
|
||||
# 工作台
|
||||
workbench(),
|
||||
=======
|
||||
# 渲染折叠面板
|
||||
render_collapse(is_conversation_history_shown),
|
||||
# 渲染工作区
|
||||
render_workplace(),
|
||||
>>>>>>> 7f6a992830604a43946173a1d6573aa63f835d55
|
||||
position="relative",
|
||||
display="flex",
|
||||
flex="1",
|
||||
|
|
|
|||
Loading…
Reference in New Issue