diff options
author | ClementTsang <cjhtsang@uwaterloo.ca> | 2020-02-17 23:28:06 -0500 |
---|---|---|
committer | ClementTsang <cjhtsang@uwaterloo.ca> | 2020-02-17 23:48:27 -0500 |
commit | 47b78d22f848d9bfccc2176cc6bc84fb2b636de7 (patch) | |
tree | 8c1408d1f548302b8bfb80e112821dd4dd852081 /src/canvas.rs | |
parent | 48d2afc54ac0f491cc68751590dc89935b64369e (diff) |
Sanity checks as we approach release... bug patching:
* Fix for freeze not working (due to change with how we eat data)
* Fix for typos with newlines
* Made help box larger
* Made dd box larger
Diffstat (limited to 'src/canvas.rs')
-rw-r--r-- | src/canvas.rs | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/canvas.rs b/src/canvas.rs index b53ac99c..af8f08ed 100644 --- a/src/canvas.rs +++ b/src/canvas.rs @@ -140,6 +140,8 @@ impl Painter { ); } + // TODO: [REFACTOR] We should clean this up tbh + #[allow(clippy::cognitive_complexity)] pub fn draw_data<B: backend::Backend>( &mut self, terminal: &mut Terminal<B>, app_state: &mut app::App, ) -> error::Result<()> { @@ -152,9 +154,9 @@ impl Painter { .margin(1) .constraints( [ - Constraint::Percentage(30), - Constraint::Percentage(40), - Constraint::Percentage(30), + Constraint::Percentage(20), + Constraint::Percentage(60), + Constraint::Percentage(20), ] .as_ref(), ) @@ -210,9 +212,9 @@ impl Painter { .margin(1) .constraints( [ - Constraint::Percentage(40), - Constraint::Percentage(20), - Constraint::Percentage(40), + Constraint::Percentage(35), + Constraint::Percentage(30), + Constraint::Percentage(35), ] .as_ref(), ) @@ -223,9 +225,9 @@ impl Painter { .margin(0) .constraints( [ - Constraint::Percentage(30), - Constraint::Percentage(40), - Constraint::Percentage(30), + Constraint::Percentage(25), + Constraint::Percentage(50), + Constraint::Percentage(25), ] .as_ref(), ) @@ -260,7 +262,7 @@ impl Painter { .render(&mut f, middle_dialog_chunk[1]); } else if let Some(to_kill_processes) = app_state.get_to_delete_processes() { if let Some(first_pid) = to_kill_processes.1.first() { - let dd_text = [ + let dd_text = vec![ if app_state.is_grouped() { if to_kill_processes.1.len() != 1 { Text::raw(format!( |