From 536047f1ac443c1ee2099588d7dc77560c621ed7 Mon Sep 17 00:00:00 2001 From: forkless Date: Mon, 1 Jun 2026 16:46:37 +0200 Subject: [PATCH] Document centered_rect and centered_bottom in main.rs --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 2cc89e0..efcd320 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1163,6 +1163,7 @@ fn confirm_modal( } } +/// Create a rectangle centered in the parent area by percentage. fn centered_rect(percent_x: u16, percent_y: u16, r: Rect) -> Rect { let popup_layout = Layout::default() .direction(Direction::Vertical) @@ -1204,6 +1205,7 @@ fn wait_for_key(terminal: &mut Terminal, app: &App) -> Result<()> } Ok(()) } +/// Create a rectangle anchored to the bottom of the parent area. fn centered_bottom(area: Rect) -> Rect { Rect {