Skip to main content

plan_overlay

Function plan_overlay 

Source
pub fn plan_overlay(area: Rect) -> RenderPlan
Expand description

Decide how wide each pane should be given the viewport.

Layout (inside the area the caller reserved for the overlay):

+---------------- header ---------------+
| sidebar | diff pane           | minimap|
+---------------- footer ---------------+

The sidebar is 1/4 of the width with a floor of 20 cols. The minimap is fixed at 2 cols (the brief’s “2-col right edge”). When the body area is too narrow for both, the minimap collapses to zero width and the diff pane eats the freed columns.