Fix key binding listing spacing

This commit is contained in:
Joscha 2023-04-20 20:52:41 +02:00
parent 3fb774e93e
commit 027bf489b7

View file

@ -86,7 +86,7 @@ pub struct KeyBindingsList(Vec<Row>);
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(),