From 07a423c97d90ec4c5056c37dab2d43f7f87cda32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Miko=C5=82ajczyk?= Date: Mon, 26 Jun 2023 10:11:34 +0200 Subject: [PATCH] Always show a single line for user input --- drink-cli/src/ui/layout.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drink-cli/src/ui/layout.rs b/drink-cli/src/ui/layout.rs index 9048b95..61eb434 100644 --- a/drink-cli/src/ui/layout.rs +++ b/drink-cli/src/ui/layout.rs @@ -14,9 +14,13 @@ pub(super) fn layout(f: &mut Frame, app_state: &mut AppState) { .direction(Direction::Vertical) .constraints( [ + // current env Constraint::Ratio(4, 20), + // output / help Constraint::Ratio(12, 20), - Constraint::Ratio(2, 20), + // user input + Constraint::Length(3), + // footer Constraint::Ratio(2, 20), ] .as_ref(),