ant-design / pro-chat

🤖 Components Library for Quickly Building LLM Chat Interfaces.
https://pro-chat.antdigital.dev
MIT License
586 stars 72 forks source link

🐛[BUG] 组件嵌入页面时输出框不会换行 #258

Open Superskyyy opened 2 weeks ago

Superskyyy commented 2 weeks ago

🐛 bug 描述

在各种嵌套使用情况下,机器人的输出不会自动换行,代码见demo。

顺便想请教一下,这种嵌入页面右下角的chatbot 用antd要如何优雅的实现?现在想到的是用drawer + 把尺寸限制,如果用modal就会操作不了页面上的别的东西了。还是说要自己写个新的东西? image

📷 复现步骤

🏞 期望结果

💻 复现代码

可复现 demo

© 版本信息

🚑 其他信息

ONLY-yours commented 2 weeks ago

你这个是 2.0 的 ProChat,还没完全准备好,先暂时使用 1.x的吧。

关于侧边栏还可以移动的,可以试试pro-editor的这个:https://pro-editor.antdigital.dev/components/draggable-panel#draggablepanel-demo-controlfloat