mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-10 07:04:17 +00:00
chore: small fixes to constraint-explorer (#894)
This commit is contained in:
parent
9ec43eff1c
commit
78f1c1446b
1 changed files with 1 additions and 3 deletions
|
@ -221,7 +221,6 @@ impl App {
|
|||
self.spacing = self.spacing.saturating_sub(1);
|
||||
}
|
||||
|
||||
// exits edit mode or the app
|
||||
fn exit(&mut self) {
|
||||
self.mode = AppMode::Quit
|
||||
}
|
||||
|
@ -230,7 +229,6 @@ impl App {
|
|||
if self.constraints.is_empty() {
|
||||
return;
|
||||
}
|
||||
// save the editor state
|
||||
let constraint = match name {
|
||||
ConstraintName::Length => Length(self.value),
|
||||
ConstraintName::Percentage => Percentage(self.value),
|
||||
|
@ -265,7 +263,7 @@ impl Widget for &App {
|
|||
Length(2), // instructions
|
||||
Length(1), // legend
|
||||
Length(1), // gap
|
||||
Fill(1),
|
||||
Fill(1), // blocks
|
||||
]));
|
||||
|
||||
self.header().render(header_area, buf);
|
||||
|
|
Loading…
Reference in a new issue