[GH-ISSUE #5964] [feat] Hope to add code block folding buttons #52853

Closed
opened 2026-05-05 14:02:03 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @kivvi3412 on GitHub (Oct 7, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/5964

  • Currently, the webpage code occupies a large amount of space. It would be helpful to add an option to collapse the code. This way the response can appear shorter, as sometimes when there's a lot of code, scrolling through the chat takes a long time.

Now:
image

The appearance of hope (ChatGPT-NextWeb):
image

Originally created by @kivvi3412 on GitHub (Oct 7, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/5964 - Currently, the webpage code occupies a large amount of space. It would be helpful to add an option to collapse the code. This way the response can appear shorter, as sometimes when there's a lot of code, scrolling through the chat takes a long time. Now: <img width="1392" alt="image" src="https://github.com/user-attachments/assets/72c11b73-88e2-4861-b509-e0261a000887"> The appearance of hope (ChatGPT-NextWeb): <img width="1001" alt="image" src="https://github.com/user-attachments/assets/0099cb3a-c799-4749-a990-c9f6d069efa3">
Author
Owner

@thiswillbeyourgithub commented on GitHub (Oct 7, 2024):

#4427 similarly, I asked for code line wrapping because it's unreadable on phones, tablets and other vertical screens.

<!-- gh-comment-id:2396156560 --> @thiswillbeyourgithub commented on GitHub (Oct 7, 2024): #4427 similarly, I asked for code line wrapping because it's unreadable on phones, tablets and other vertical screens.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#52853