fix(tui): fit confirmation popups to content
This commit is contained in:
1 parent
992f15b082
commit
6527b24081
6 files changed
+31
-3
No files matched your search
@@ -110,7 +110,7 @@ pub fn popup_rect(frame_area: Rect) -> Rect {
|
||||
frame_area.centered(w, Constraint::Length(h))
|
||||
}
|
||||
ImportStep::Confirm => {
|
||||
let h = 10u16.min(frame_area.height.saturating_sub(4));
|
||||
let h = 8u16.min(frame_area.height.saturating_sub(4));
|
||||
frame_area.centered(w, Constraint::Length(h))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user