diff --git a/src/app.rs b/src/app.rs index 07ce4c4..5847012 100644 --- a/src/app.rs +++ b/src/app.rs @@ -388,8 +388,11 @@ impl UsageApp { fn anomaly_list(ui: &mut egui::Ui, th: &Theme, hits: &[AnomalyHit]) { // Newest first under the gauge. - for hit in hits.iter().rev() { - ui.horizontal(|ui| { + for (i, hit) in hits.iter().rev().enumerate() { + if i > 0 { + ui.add_space(th.spacing.xs.max(2.0)); + } + ui.vertical(|ui| { ui.label( RichText::new(&hit.proc_name) .size(th.type_scale.caption) @@ -397,7 +400,13 @@ fn anomaly_list(ui: &mut egui::Ui, th: &Theme, hits: &[AnomalyHit]) { .color(th.palette.warning), ); ui.label( - RichText::new(format!("{} ยท {}", hit.stamp, format_bps(hit.rate_bps))) + RichText::new(&hit.stamp) + .size(th.type_scale.caption) + .color(th.palette.text_secondary), + ); + // Rate on its own line so it doesn't crowd the name/time. + ui.label( + RichText::new(format_bps(hit.rate_bps)) .size(th.type_scale.caption) .color(th.palette.text_secondary), );