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:
Raphael Erik Hviding 2024-05-05 20:11:02 +02:00 committed by GitHub
parent d53725bbfc
commit 3ded6a6529
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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),