diff options
author | Joris | 2025-02-07 14:36:58 +0100 |
---|---|---|
committer | Joris | 2025-02-07 14:36:58 +0100 |
commit | 9af9c844c9c481c2d8db21545d97f069552f40ec (patch) | |
tree | ae22f30721a5eb519ea9ab937d5335af1d3f3107 /src/gui/question.rs | |
parent | 459c296daf64fa88e8cb5c64dfcbbb9d05c21a71 (diff) |
Adapt layout sizes
Prevent negative usize errors to stop the program.
Diffstat (limited to 'src/gui/question.rs')
-rw-r--r-- | src/gui/question.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/question.rs b/src/gui/question.rs index 2a42e57..37ea43d 100644 --- a/src/gui/question.rs +++ b/src/gui/question.rs @@ -42,11 +42,11 @@ pub fn ask<B: Backend>(terminal: &mut Terminal<B>, title: &str, card: &Card) -> .margin(2) .constraints( [ - Constraint::Length(1), - Constraint::Percentage(30), - Constraint::Length(5), - Constraint::Percentage(30), - Constraint::Length(5), + Constraint::Percentage(15), + Constraint::Percentage(25), + Constraint::Percentage(15), + Constraint::Percentage(15), + Constraint::Percentage(15), ] .as_ref(), ) |