Make the number of visible logs dynamic

It helps to see all the logs when switching to a bigger InputAndLogs
layout.
pull/302/head
Arijit Basu 3 years ago committed by Arijit Basu
parent 7eb81c33de
commit f5aceb1e66

@ -857,7 +857,7 @@ fn draw_logs<B: Backend>(
app.logs()
.iter()
.rev()
.take(1)
.take(layout_size.height as usize)
.rev()
.map(|l| {
let time = l.created_at().format("%r");

Loading…
Cancel
Save