Collapse long code blocks (OD-1611)
wojtek opened 2 years ago

After posting long code block in https://code.onedev.io/onedev/server/~issues/1609#IssueComment-5858 it occured to me that it would be great to collaps those with aibility to show complete code block on click.

  • Cody Robinson commented 1 year ago

    Hi @wojtek

    I have come up with an improvement plan below, but would like some input on your use case and what you believe would work.

    • When inserting a code block in the OneDev note editor

    would you like it to be fully collapsed (no code shown) until you expand

    -- or --

    create a collapsable code block after it reaches XX amount of lines.

    If you're thinking of something else, let me know so we can develop an Improvement plan.

  • wojtek commented 1 year ago

    I was thinking about the latter: "create a collapsable code block after it reaches XX amount of lines."

    I don't think it has to be collapsable for small blocks (10-15-20 lines)

issue 1/1
Type
Improvement
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (3)
Reference
OD-1611
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover