ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Bug]: Issue with Markdown Code Blocks Breaking Frontend Layout

Open Peterson047 opened this issue 10 months ago • 0 comments

Is there an existing issue for the same bug?

  • [x] I have checked the existing issues.

RAGFlow workspace code commit ID

d683644

RAGFlow image version

0.17.0

Other environment information

Windows 11
12gb
i7 11ºgen

Actual behavior

When the model generates a Markdown code block without line breaks, it affects the frontend by forcing the screen width to expand according to the length of the code line. This can misalign the layout, reduce responsiveness, and make content harder to view.

Notice the long horizontal scroll bar and the missing side menu

Image

Expected behavior

No response

Steps to reproduce

Ask the model to generate a single line block of code.

Additional information

No response

Peterson047 avatar Mar 07 '25 20:03 Peterson047