diff --git a/src/frontend/ui.rs b/src/frontend/ui.rs index a573754..76843ef 100644 --- a/src/frontend/ui.rs +++ b/src/frontend/ui.rs @@ -20,15 +20,16 @@ impl App { let [footer_left, footer_right] = Layout::default() .direction(Direction::Horizontal) - .constraints([Constraint::Percentage(50), Constraint::Percentage(50)]) + .constraints([Constraint::Percentage(30), Constraint::Percentage(70)]) .split(bottom) .as_array() .cloned() .unwrap(); - frame.render_widget(self, frame.area()); network_info(frame, footer_left); peers(&self.peers, frame, footer_right); + // draw the main frame last + frame.render_widget(self, frame.area()); } } diff --git a/src/main.rs b/src/main.rs index af9e854..67a49ac 100644 --- a/src/main.rs +++ b/src/main.rs @@ -56,6 +56,7 @@ async fn main() -> error::Result<()> { } } _ = tokio::time::sleep(tokio::time::Duration::from_secs(5)) => { + println!("Exit timeout reached, aborting all unjoined tasks"); handles.abort_all(); break; },