lobe-chat
lobe-chat copied to clipboard
[Bug] List rendering problem in Safari
💻 系统环境
macOS
📦 部署环境
Docker
🌐 浏览器
Safari
🐛 问题描述
见于 Safari PWA(macOS Sonoma),流式输出。
文本完全正常同 Markdown 列表文本,只要点击编辑然后取消即可正常渲染。但是若不做此操作,则会保留这个多出来的空白换行。
未在 Chrome 中测试。
@canisminor1990
🚦 期望结果
正常列表渲染。
📷 复现步骤
随便问 GPT 一个问题,得到一个列表,即有概率触发此问题。
📝 补充信息
No response
👀 @zhuozhiyongde
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
💻 System environment
macOS
📦 Deployment environment
Docker
🌐 Browser
Safari
🐛 Problem description
Seen in Safari PWA (macOS Sonoma), streaming output.
The text is completely normal as Markdown list text. Just click Edit and Cancel to render normally. But if you don't do this, the extra blank line breaks will be retained.
Not tested in Chrome.
@canisminor1990
🚦 Expected results
Normal list rendering.
📷 Steps to reproduce
Just ask GPT a question and get a list that has a probability of triggering this issue.
📝 Supplementary information
No response
我想一个简单的解决方式就是,在整体请求完成后,重新进行一次渲染。事实上,我现在对于未能成功渲染的回答,点击一下编辑再立刻取消就能正常了。
@canisminor1990
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
I think a simple solution is to re-render after the entire request is completed. In fact, for my answers that failed to render successfully, I can just click edit and cancel immediately.
@canisminor1990
https://github.com/lobehub/lobe-chat/assets/36695271/01815f3c-d805-4ce8-b59d-b93394b30fac
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
https://github.com/lobehub/lobe-chat/assets/36695271/01815f3c-d805-4ce8-b59d-b93394b30fac
我注意到这个问题至今仍未解决,但是真的很影响体验,希望大佬们再看一眼 @canisminor1990 @arvinxx
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
I noticed that this problem has not been solved yet, but it really affects the experience. I hope you guys will take another look @canisminor1990 @arvinxx
我这个月修一下
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
I'll fix it this month
小小的催一下~
另外,我之前说
在整体请求完成后,重新进行一次渲染。
这个方法确实有效,我现在也是这么做的(通过先切换到别的话题再切换回来),但是我想了一下,可能能够在过程中就重新渲染(或者更彻底的,完全修复)可能更好。因为有可能在流式输出的过程中就在阅读了(
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Just a little reminder~
Also, I said before
After the entire request is completed, render again.
This method does work, and that's what I do now (by switching to another topic and then switching back), but I thought it might be better to just re-render in the process (or more radically, fix it completely) . Because it is possible to read during the streaming output process (
https://github.com/lobehub/lobe-ui/commit/cf75d6a6ae1decad3e736fbaf42f3690b5cdad75
✅ @zhuozhiyongde
This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。