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

Function header

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

Source from the content-addressed store, hash-verified

45}
46
47pub fn header(area: Rect, height: u16) -> Rect {
48 let layout = Layout::default()
49 .direction(Direction::Vertical)
50 .constraints([Constraint::Length(height), Constraint::Min(0)])
51 .split(area);
52 layout[0]
53}
54
55pub fn sidebar_left(area: Rect, width: u16) -> (Rect, Rect) {
56 let layout = Layout::default()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected