MCPcopy Create free account
hub / github.com/Autoparallel/learner / split_layout

Method split_layout

crates/learnerd/src/tui/ui.rs:298–304  ·  view source on GitHub ↗

Splits the main layout into left and right panes. The layout uses a 30/70 split for optimal content display.

(&self, area: Rect)

Source from the content-addressed store, hash-verified

296 ///
297 /// The layout uses a 30/70 split for optimal content display.
298 fn split_layout(&self, area: Rect) -> (Rect, Rect) {
299 let chunks = Layout::default()
300 .direction(Direction::Horizontal)
301 .constraints([Constraint::Percentage(30), Constraint::Percentage(70)])
302 .split(area);
303 (chunks[0], chunks[1])
304 }
305
306 /// Draws the paper list with its help bar.
307 ///

Callers 1

drawMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected