MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / sidebar_right

Function sidebar_right

crates/opencode-tui/src/ui/layout.rs:63–69  ·  view source on GitHub ↗
(area: Rect, width: u16)

Source from the content-addressed store, hash-verified

61}
62
63pub fn sidebar_right(area: Rect, width: u16) -> (Rect, Rect) {
64 let layout = Layout::default()
65 .direction(Direction::Horizontal)
66 .constraints([Constraint::Min(0), Constraint::Length(width)])
67 .split(area);
68 (layout[0], layout[1])
69}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected