From 9af9c844c9c481c2d8db21545d97f069552f40ec Mon Sep 17 00:00:00 2001 From: Joris Date: Fri, 7 Feb 2025 14:36:58 +0100 Subject: Adapt layout sizes Prevent negative usize errors to stop the program. --- src/gui/question.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/gui/question.rs') 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(terminal: &mut Terminal, 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(), ) -- cgit v1.2.3