Make cameras list in TUI scrollable on overflow

This commit is contained in:
Skye 2023-07-01 14:56:39 -04:00 committed by Scott Lamb
parent 5a567da652
commit 6acf9ad67f

View File

@ -673,7 +673,8 @@ pub fn top_dialog(db: &Arc<db::Database>, siv: &mut Cursive) {
.iter() .iter()
.map(|(&id, camera)| (format!("{}: {}", id, camera.short_name), Some(id))), .map(|(&id, camera)| (format!("{}: {}", id, camera.short_name), Some(id))),
) )
.full_width(), .full_width()
.scrollable(),
) )
.dismiss_button("Done") .dismiss_button("Done")
.title("Edit cameras"), .title("Edit cameras"),