From 7264d127d939abab0af2c0622b046b0313654e78 Mon Sep 17 00:00:00 2001 From: electria Date: Sat, 15 Aug 2026 18:36:29 -0700 Subject: [PATCH] feat: improve style --- src/app/mod.rs | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/app/mod.rs b/src/app/mod.rs index d989b14..7f073f5 100644 --- a/src/app/mod.rs +++ b/src/app/mod.rs @@ -72,17 +72,13 @@ impl State { .width(Length::Fill) .height(Length::Fill) .into(), - widget::grid(self.cpu_graphs.iter().map(|(name, graph)| { - widget::row([ - // widget::text(name).into(), - widget::Canvas::new(graph) - .width(Length::Fill) - .height(Length::Fill) - .into(), - ]) - .into() - })) - // .columns(8) + widget::grid( + self.cpu_graphs + .iter() + .map(|(_name, graph)| widget::Canvas::new(graph).into()), + ) + .columns(2) + .height(Length::Fill) .into(), ]) .into()