feat: Flexible code block collapse settings #5886

Closed
opened 2025-11-11 16:36:58 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @hz61p1 on GitHub (Jul 27, 2025).

Check Existing Issues

  • I have searched the existing issues and discussions.

Problem Description

No problem, just improving interaction

Desired Solution you'd like

Currently, there are only two options: collapse or do not collapse. My suggestion is to add a setting that allows you to specify the number of lines after which the block will be collapsed, for example, three options: On, Off, and Custom. When you select Custom, you will be prompted to enter the number of lines after which the code block will be automatically collapsed

Alternatives Considered

No response

Additional Context

No response

Originally created by @hz61p1 on GitHub (Jul 27, 2025). ### Check Existing Issues - [x] I have searched the existing issues and discussions. ### Problem Description No problem, just improving interaction ### Desired Solution you'd like Currently, there are only two options: collapse or do not collapse. My suggestion is to add a setting that allows you to specify the number of lines after which the block will be collapsed, for example, three options: On, Off, and Custom. When you select Custom, you will be prompted to enter the number of lines after which the code block will be automatically collapsed ### Alternatives Considered _No response_ ### Additional Context _No response_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#5886