Remove header gap in most tables

This commit is contained in:
ClementTsang 2020-04-18 22:54:35 -04:00
parent 90e1e9f4cb
commit b42583e04c
5 changed files with 10 additions and 4 deletions

View File

@ -36,6 +36,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- In addition, changed to using only legends within the graph for network, as well as redesigned the legend. - In addition, changed to using only legends within the graph for network, as well as redesigned the legend.
The old legend style can still be used via the `--use_old_network_legend` flag or `use_old_network_legend = true` option. The old legend style can still be used via the `--use_old_network_legend` flag or `use_old_network_legend = true` option.
- Removed header gap on tables.
### Bug Fixes ### Bug Fixes
- Fixed `dd` not working on non-first entries. - Fixed `dd` not working on non-first entries.

View File

@ -345,7 +345,8 @@ impl CpuGraphWidget for Painter {
.iter() .iter()
.map(|calculated_width| Constraint::Length(*calculated_width as u16)) .map(|calculated_width| Constraint::Length(*calculated_width as u16))
.collect::<Vec<_>>()), .collect::<Vec<_>>()),
), )
.header_gap(0),
draw_loc, draw_loc,
); );
} }

View File

@ -147,7 +147,8 @@ impl DiskTableWidget for Painter {
.iter() .iter()
.map(|calculated_width| Constraint::Length(*calculated_width as u16)) .map(|calculated_width| Constraint::Length(*calculated_width as u16))
.collect::<Vec<_>>()), .collect::<Vec<_>>()),
), )
.header_gap(0),
margined_draw_loc[0], margined_draw_loc[0],
); );
} }

View File

@ -264,7 +264,8 @@ impl ProcessTableWidget for Painter {
Constraint::Length(*calculated_width as u16) Constraint::Length(*calculated_width as u16)
}) })
.collect::<Vec<_>>()), .collect::<Vec<_>>()),
), )
.header_gap(0),
margined_draw_loc[0], margined_draw_loc[0],
); );
} }

View File

@ -148,7 +148,8 @@ impl TempTableWidget for Painter {
.iter() .iter()
.map(|calculated_width| Constraint::Length(*calculated_width as u16)) .map(|calculated_width| Constraint::Length(*calculated_width as u16))
.collect::<Vec<_>>()), .collect::<Vec<_>>()),
), )
.header_gap(0),
margined_draw_loc[0], margined_draw_loc[0],
); );
} }