diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2021-02-18 19:15:07 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-18 19:15:07 -0500 |
commit | e6230ef156efe907f2cf76af4298a7e34df330b4 (patch) | |
tree | fd6b2aeea35f917916201bfc01bbca692f502c06 /src | |
parent | 4db39da75e00e45cc50c8143ff5eba3d92525dbd (diff) |
bug: fix inconsistent spacing with grouped vs non-grouped in the process widget (#416)
Fixes grouped mode having different spacing than non-grouped mode.
Diffstat (limited to 'src')
-rw-r--r-- | src/canvas/widgets/process_table.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/canvas/widgets/process_table.rs b/src/canvas/widgets/process_table.rs index fa5f3393..f655b2c1 100644 --- a/src/canvas/widgets/process_table.rs +++ b/src/canvas/widgets/process_table.rs @@ -52,7 +52,7 @@ static PROCESS_HEADERS_SOFT_WIDTH_MAX_GROUPED_COMMAND: Lazy<Vec<Option<f64>>> = static PROCESS_HEADERS_SOFT_WIDTH_MAX_GROUPED_TREE: Lazy<Vec<Option<f64>>> = Lazy::new(|| vec![None, Some(0.5), None, None, None, None, None, None]); static PROCESS_HEADERS_SOFT_WIDTH_MAX_GROUPED_ELSE: Lazy<Vec<Option<f64>>> = - Lazy::new(|| vec![None, Some(0.4), None, None, None, None, None, None]); + Lazy::new(|| vec![None, Some(0.3), None, None, None, None, None, None]); static PROCESS_HEADERS_SOFT_WIDTH_MAX_NO_GROUP_COMMAND: Lazy<Vec<Option<f64>>> = Lazy::new(|| { vec![ @@ -356,6 +356,7 @@ impl ProcessTableWidget for Painter { .iter() .map(|entry| UnicodeWidthStr::width(entry.as_str()) as u16) .collect::<Vec<_>>(); + let soft_widths_min = column_widths .iter() .map(|width| Some(*width)) |