-
-
Notifications
You must be signed in to change notification settings - Fork 11.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] 在多条长对话中编辑历史对话(非最后一条)时,会直接跳到回答底部(或更下面的位置)。此时需要向上翻才能找到编辑的内容 #4494
Comments
👀 @one-pyy Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
📦 Deployment environmentDocker 📌 Software version1.24.1 (server version) 💻 System environmentUbuntu 🌐 BrowserEdge 🐛 Problem descriptionWhen editing a historical conversation (not the last one) in multiple long conversations, you will jump directly to the bottom of the answer. At this time, you need to scroll up to find the edited content. It is speculated that the distance to the top is always used, and the height of the text box is limited when editing, causing the content to be edited to become shorter, and the place with the same height as the top becomes the bottom (or lower). 📷 Steps to reproduceOpen a session and add two messages, each message 🚦 Expected resultsThe edit button is at the top of the single message so this problem can be avoided/ Ability to set the non-folding height of the edit box (it is best if the edit button is suspended so that you can turn it to where it is and modify it)/ There is an edit button in the menu bar. After pressing it, all messages can be edited directly. 📝 Supplementary informationThanks guys! |
The issue you're experiencing seems to be related to the scrolling behavior when editing a message in a long conversation. When you edit a message that is not the last one, the interface jumps to the bottom, making it difficult to find the content you want to edit. This might be due to the way the height of the text box is controlled during editing, which can affect the scrolling position. Currently, the height of the text box is controlled by the To address this, you might consider implementing a mechanism to keep the edit button visible or floating while scrolling, which would allow you to edit messages more conveniently. However, there is no existing functionality or component in the repository that provides this feature [2]. For a more immediate solution, you could explore adjusting the CSS or JavaScript logic to ensure the editing interface maintains its position relative to the message being edited, rather than jumping to the bottom. This might involve modifying the event listeners or handlers associated with message editing to better manage scrolling and positioning [3]. |
📦 部署环境
Docker
📌 软件版本
1.24.1(服务器版本)
💻 系统环境
Ubuntu
🌐 浏览器
Edge
🐛 问题描述
在多条长对话中编辑历史对话(非最后一条)时,会直接跳到回答底部。此时需要向上翻才能找到编辑的内容。推测是因为总是使用到顶部的距离,而编辑时会限制文本框高度,导致要编辑的内容变矮,而此时与顶端高度相同的地方就变成了底部(或更下面的位置)
📷 复现步骤
打开一个会话,添加两条消息,每条消息
"test\n"*200
。然后点击编辑第一条消息,即可复现。🚦 期望结果
每次打开编辑都会定位到输入框顶部
📝 补充信息
或许可以参考下面的修改方法?
感谢大佬们!
The text was updated successfully, but these errors were encountered: