Fix key binding listing spacing
This commit is contained in:
parent
3fb774e93e
commit
027bf489b7
1 changed files with 7 additions and 3 deletions
|
|
@ -86,7 +86,7 @@ pub struct KeyBindingsList(Vec<Row>);
|
||||||
|
|
||||||
impl KeyBindingsList {
|
impl KeyBindingsList {
|
||||||
/// Width of the left column of key bindings.
|
/// Width of the left column of key bindings.
|
||||||
const BINDING_WIDTH: u16 = 20;
|
const BINDING_WIDTH: u16 = 24;
|
||||||
|
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
Self(vec![])
|
Self(vec![])
|
||||||
|
|
@ -108,13 +108,17 @@ impl KeyBindingsList {
|
||||||
.with_right(1)
|
.with_right(1)
|
||||||
.resize()
|
.resize()
|
||||||
.with_min_width(Self::BINDING_WIDTH)
|
.with_min_width(Self::BINDING_WIDTH)
|
||||||
.segment(),
|
.segment()
|
||||||
|
.with_fixed(true),
|
||||||
Text::new(description).segment(),
|
Text::new(description).segment(),
|
||||||
)
|
)
|
||||||
.second3(),
|
.second3(),
|
||||||
|
|
||||||
Row::BindingContd(description) => Join2::horizontal(
|
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(),
|
Text::new(description).segment(),
|
||||||
)
|
)
|
||||||
.third3(),
|
.third3(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue