From ab538d52ba2b3816122ba27de606e79c1de15a65 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Sat, 20 Apr 2024 14:25:03 +0300 Subject: [PATCH] metrics: fix list width --- src/gui/views/network/metrics.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/views/network/metrics.rs b/src/gui/views/network/metrics.rs index ae9d864..f184ae8 100644 --- a/src/gui/views/network/metrics.rs +++ b/src/gui/views/network/metrics.rs @@ -85,7 +85,7 @@ impl NetworkTab for NetworkMetrics { [false, true, false, true]); }); }); - ui.add_space(4.0); + ui.add_space(5.0); // Show difficulty adjustment window info. let difficulty_title = t!( @@ -151,6 +151,7 @@ fn block_item_ui(ui: &mut egui::Ui, db: &DiffBlock, rounding: Rounding) { ui.vertical(|ui| { // Draw round background. rect.min += vec2(8.0, 0.0); + rect.max -= vec2(8.0, 0.0); ui.painter().rect(rect, rounding, Colors::WHITE, View::ITEM_STROKE); ui.add_space(2.0); @@ -187,6 +188,7 @@ fn block_item_ui(ui: &mut egui::Ui, db: &DiffBlock, rounding: Rounding) { ui.add_space(2.0); }); + ui.add_space(8.0); }); }); } \ No newline at end of file