From 837c34320e8dd52053d8f451e7c14e3fc746c903 Mon Sep 17 00:00:00 2001 From: forkless Date: Sun, 31 May 2026 19:47:13 +0200 Subject: [PATCH] Fix OK dialog width padding to avoid text clipping --- src/tui.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tui.rs b/src/tui.rs index c638f1d..0fffa51 100644 --- a/src/tui.rs +++ b/src/tui.rs @@ -220,7 +220,7 @@ pub fn draw_confirm_popup( } pub fn draw_ok_dialog(f: &mut Frame, _app: &AppState, title: &str, message: &str) { - let content_w = message.lines().map(|l| l.len()).max().unwrap_or(20).max(title.len()) as u16 + 6; + let content_w = message.lines().map(|l| l.len()).max().unwrap_or(20).max(title.len()) as u16 + 10; let popup_w = content_w.max(50).min(f.area().width.saturating_sub(4)); let popup_h = (message.lines().count() as u16 + 7).min(f.area().height.saturating_sub(4)); let area = centered_rect_size(popup_w, popup_h, f.area());