Add resize handling and non-blocking input loop

Use `recv_timeout` to prevent UI blocking, forward terminal resize
events,
adjust keybinding width calculation, and replace percentage layout with
fill/length for the main menu.
This commit is contained in:
GarandPLG committed 2026-03-12 16:23:54 +01:00
1 parent 71b9d44a77
commit c3886ca0cf
3 files changed
+19 -8

No files matched your search

+1 -1
View File
@@ -30,7 +30,7 @@ impl Widget for KeybindingsWidget {
block.render(area, buf);
let base: u16 = if count == 0 { 0 } else { 10 };
let base: u16 = if count == 0 { 0 } else { 100u16 / count };
let constraints: Vec<Constraint> = vec![Constraint::Percentage(base); count as usize];