mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-23 13:45:12 +02:00
bug: fix battery table when hiding gaps (#1458)
This changes the behavior of the battery widget when paired with the skip_table_gap.
This commit is contained in:
parent
d53725bbfc
commit
3ded6a6529
@ -196,7 +196,7 @@ impl Painter {
|
||||
)]));
|
||||
|
||||
let mut battery_rows = Vec::with_capacity(3);
|
||||
battery_rows.push(Row::new([""]).bottom_margin(table_gap * 2));
|
||||
battery_rows.push(Row::new([""]).bottom_margin(table_gap + 1));
|
||||
battery_rows.push(
|
||||
Row::new(["Rate", &battery_details.watt_consumption])
|
||||
.style(self.colours.text_style),
|
||||
|
Loading…
x
Reference in New Issue
Block a user