fix(tui): fit confirmation popups to content

This commit is contained in:
objz committed 2026-07-28 14:32:50 +02:00
1 parent 992f15b082
commit 6527b24081
6 files changed
+31 -3

No files matched your search

@@ -108,7 +108,7 @@ pub fn popup_rect(frame_area: Rect) -> Rect {
frame_area.centered(w, Constraint::Length(h))
}
WizardStep::Confirm => {
let h = 8u16.min(frame_area.height.saturating_sub(4));
let h = 6u16.min(frame_area.height.saturating_sub(4));
frame_area.centered(w, Constraint::Length(h))
}
}