[feat]:[FL-224][优化AI问答页面:左下角按钮改为文案,左上角增加新建会话加号按钮]
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -351,11 +351,26 @@ export default function AiChatPage() {
|
|||||||
borderRight: "1px solid var(--ant-color-border-secondary)",
|
borderRight: "1px solid var(--ant-color-border-secondary)",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{/* Header */}
|
{/* Header with new conversation button */}
|
||||||
<div className="ai-chat-sidebar-header" style={{ padding: "16px", borderBottom: "1px solid var(--ant-color-border-secondary)" }}>
|
<div
|
||||||
|
className="ai-chat-sidebar-header"
|
||||||
|
style={{
|
||||||
|
padding: "16px",
|
||||||
|
borderBottom: "1px solid var(--ant-color-border-secondary)",
|
||||||
|
display: "flex",
|
||||||
|
alignItems: "center",
|
||||||
|
justifyContent: "space-between",
|
||||||
|
}}
|
||||||
|
>
|
||||||
<Text strong style={{ fontSize: 16 }}>
|
<Text strong style={{ fontSize: 16 }}>
|
||||||
AI 问答助手
|
AI 问答助手
|
||||||
</Text>
|
</Text>
|
||||||
|
<Button
|
||||||
|
type="text"
|
||||||
|
icon={<PlusOutlined />}
|
||||||
|
onClick={() => createConvMutation.mutate("新对话")}
|
||||||
|
loading={createConvMutation.isPending}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Conversation List */}
|
{/* Conversation List */}
|
||||||
@@ -443,21 +458,11 @@ export default function AiChatPage() {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* New Conversation Button */}
|
{/* Bottom branding */}
|
||||||
<div className="ai-chat-new-conversation-button-container" style={{ padding: "16px", borderTop: "1px solid var(--ant-color-border-secondary)" }}>
|
<div className="ai-chat-new-conversation-button-container" style={{ padding: "16px", borderTop: "1px solid var(--ant-color-border-secondary)" }}>
|
||||||
<Button
|
<Text style={{ fontSize: 13, color: "var(--ant-color-text-secondary)", textAlign: "center", display: "block" }}>
|
||||||
type="default"
|
AI问答助手
|
||||||
block
|
</Text>
|
||||||
icon={<PlusOutlined />}
|
|
||||||
onClick={() => createConvMutation.mutate("新对话")}
|
|
||||||
loading={createConvMutation.isPending}
|
|
||||||
style={{
|
|
||||||
height: 40,
|
|
||||||
borderRadius: 8,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
新建对话
|
|
||||||
</Button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user