Collapse long code blocks (OD-1611)
Open
wojtek opened 9 months 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 week 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 2 days 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 of 1
Type
Improvement
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (4)
Reference
OD-1611
Please wait...
Page is in error, reload to recover