From 027bf489b70bd6c886f559fc8675603961915d4c Mon Sep 17 00:00:00 2001 From: Joscha Date: Thu, 20 Apr 2023 20:52:41 +0200 Subject: [PATCH] Fix key binding listing spacing --- src/ui/input.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/ui/input.rs b/src/ui/input.rs index c91789b..85b5f1f 100644 --- a/src/ui/input.rs +++ b/src/ui/input.rs @@ -86,7 +86,7 @@ pub struct KeyBindingsList(Vec); impl KeyBindingsList { /// Width of the left column of key bindings. - const BINDING_WIDTH: u16 = 20; + const BINDING_WIDTH: u16 = 24; pub fn new() -> Self { Self(vec![]) @@ -108,13 +108,17 @@ impl KeyBindingsList { .with_right(1) .resize() .with_min_width(Self::BINDING_WIDTH) - .segment(), + .segment() + .with_fixed(true), Text::new(description).segment(), ) .second3(), Row::BindingContd(description) => Join2::horizontal( - Empty::new().with_width(Self::BINDING_WIDTH).segment(), + Empty::new() + .with_width(Self::BINDING_WIDTH) + .segment() + .with_fixed(true), Text::new(description).segment(), ) .third3(),