1
Drag handle to set code block height with internal scrolling
Source: outline/outline#14165 · opened by @chenniannian90
Auto-collapse of tall code blocks (#11967, refined in #12743 and #13815) fixed the worst case of giant blocks dominating a document — long docs are much easier to scroll now. The height control is still binary though: a block is either collapsed to 10 lines or expanded to full height. For a 300-line block, expanding means the page grows enormous again, and there's no way for an author to say "this is reference material, a 15-line window with internal scrolling is enough". Proposal Give code blocks the same resize interaction images and videos already have: a drag handle at the bottom edge to set the visible height. • Dragging sets a fixed height with internal scrolling (max-height + overflow-y: auto), so the block stops growing the page • Bounded: minimum of a couple of lines, capped at the block's natural height • The height persists on the node, so all readers see the same layout • Double-click resets to automatic height (same as image…
No pledges yet. Be the first to back this.
Comments
Similar requests
Only select the code block content when pressing Cmd + A inside the node
1 vote · 0 comments
Display the content of internal linked page.
3 votes · 0 comments
Unique class added to differentiate INTERNAL and EXTERNAL links
1 vote · 0 comments
Deep link resolution to point at sub-headlines
2 votes · 0 comments
add filename header for code blocks
4 votes · 0 comments
No comments yet.