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)
|
.width(Length::Fill)
|
||||||
.height(Length::Fill)
|
.height(Length::Fill)
|
||||||
.into(),
|
.into(),
|
||||||
widget::grid(self.cpu_graphs.iter().map(|(name, graph)| {
|
widget::grid(
|
||||||
widget::row([
|
self.cpu_graphs
|
||||||
// widget::text(name).into(),
|
.iter()
|
||||||
widget::Canvas::new(graph)
|
.map(|(_name, graph)| widget::Canvas::new(graph).into()),
|
||||||
.width(Length::Fill)
|
)
|
||||||
.height(Length::Fill)
|
.columns(2)
|
||||||
.into(),
|
.height(Length::Fill)
|
||||||
])
|
|
||||||
.into()
|
|
||||||
}))
|
|
||||||
// .columns(8)
|
|
||||||
.into(),
|
.into(),
|
||||||
])
|
])
|
||||||
.into()
|
.into()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue