summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaphael Erik Hviding <raphael.hviding@gmail.com>2024-05-05 20:11:02 +0200
committerGitHub <noreply@github.com>2024-05-05 18:11:02 +0000
commit3ded6a65292cc490036333dd264dbb7eca14e5ba (patch)
treef7aa44317bec9f62f169de9ff8ad2dbbd3961d72
parentd53725bbfc9acd76902ac22602f4ff2cd18e57fc (diff)
bug: fix battery table when hiding gaps (#1458)
This changes the behavior of the battery widget when paired with the skip_table_gap.
-rw-r--r--src/canvas/widgets/battery_display.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/canvas/widgets/battery_display.rs b/src/canvas/widgets/battery_display.rs
index 316d3693..c2cc91bc 100644
--- a/src/canvas/widgets/battery_display.rs
+++ b/src/canvas/widgets/battery_display.rs
@@ -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),