Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -654,10 +654,14 @@ with gr.Blocks(css=css, fill_width=True) as demo:
|
|
654 |
with antd.Col(md=dict(flex="0 0 260px", span=24, order=0),
|
655 |
span=0,
|
656 |
order=1,
|
657 |
-
elem_classes="chatbot-conversations"
|
|
|
|
|
|
|
|
|
658 |
with antd.Flex(vertical=True,
|
659 |
gap="small",
|
660 |
-
elem_style=dict(height="100%")):
|
661 |
# Logo
|
662 |
logo()
|
663 |
|
@@ -665,7 +669,7 @@ with gr.Blocks(css=css, fill_width=True) as demo:
|
|
665 |
with antd.Button(value=None,
|
666 |
color="primary",
|
667 |
variant="filled",
|
668 |
-
block=True) as add_conversation_btn:
|
669 |
ms.Text(get_text("New Conversation", "新建对话"))
|
670 |
with ms.Slot("icon"):
|
671 |
antd.Icon("PlusOutlined")
|
@@ -673,6 +677,12 @@ with gr.Blocks(css=css, fill_width=True) as demo:
|
|
673 |
# Conversations List
|
674 |
with antdx.Conversations(
|
675 |
elem_classes="chatbot-conversations-list",
|
|
|
|
|
|
|
|
|
|
|
|
|
676 |
) as conversations:
|
677 |
with ms.Slot('menu.items'):
|
678 |
with antd.Menu.Item(
|
|
|
654 |
with antd.Col(md=dict(flex="0 0 260px", span=24, order=0),
|
655 |
span=0,
|
656 |
order=1,
|
657 |
+
elem_classes="chatbot-conversations",
|
658 |
+
elem_style=dict(
|
659 |
+
maxWidth="260px",
|
660 |
+
minWidth="260px",
|
661 |
+
overflow="hidden")):
|
662 |
with antd.Flex(vertical=True,
|
663 |
gap="small",
|
664 |
+
elem_style=dict(height="100%", width="100%", minWidth="0")):
|
665 |
# Logo
|
666 |
logo()
|
667 |
|
|
|
669 |
with antd.Button(value=None,
|
670 |
color="primary",
|
671 |
variant="filled",
|
672 |
+
block=True, elem_style=dict(maxWidth="100%")) as add_conversation_btn:
|
673 |
ms.Text(get_text("New Conversation", "新建对话"))
|
674 |
with ms.Slot("icon"):
|
675 |
antd.Icon("PlusOutlined")
|
|
|
677 |
# Conversations List
|
678 |
with antdx.Conversations(
|
679 |
elem_classes="chatbot-conversations-list",
|
680 |
+
elem_style=dict(
|
681 |
+
width="100%",
|
682 |
+
minWidth="0",
|
683 |
+
overflow="hidden",
|
684 |
+
flex="1"
|
685 |
+
)
|
686 |
) as conversations:
|
687 |
with ms.Slot('menu.items'):
|
688 |
with antd.Menu.Item(
|