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

Function sidebar_left

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

Source from the content-addressed store, hash-verified

53}
54
55pub fn sidebar_left(area: Rect, width: u16) -> (Rect, Rect) {
56 let layout = Layout::default()
57 .direction(Direction::Horizontal)
58 .constraints([Constraint::Length(width), Constraint::Min(0)])
59 .split(area);
60 (layout[0], layout[1])
61}
62
63pub fn sidebar_right(area: Rect, width: u16) -> (Rect, Rect) {
64 let layout = Layout::default()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected