Refactored all popups to use centrally defined, consistent sizes.

This commit is contained in:
2024-02-13 17:56:00 -07:00
parent 4b734811f4
commit 9bff58c20b
19 changed files with 313 additions and 261 deletions
+3 -1
View File
@@ -156,7 +156,9 @@ where
let selectable_list = SelectableList::new(content.sort.as_mut().unwrap(), |item| {
ListItem::new(Text::from(item.name))
});
Popup::new(selectable_list, 20, 50).render(table_area, buf);
Popup::new(selectable_list)
.dimensions(20, 50)
.render(table_area, buf);
}
} else {
loading_block.render(table_area, buf);