feat: improve style
This commit is contained in:
parent
98b7a8d201
commit
7264d127d9
1 changed files with 7 additions and 11 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue