lib: Rework render width-dependent table column display

This commit is contained in:
Erik Kundt
2024-06-13 12:37:31 +02:00
parent 4805b1aed4
commit 68a4a82165
3 changed files with 87 additions and 28 deletions
+5
View File
@@ -22,6 +22,11 @@ use super::terminal;
const RENDERING_TICK_RATE: Duration = Duration::from_millis(250);
const INLINE_HEIGHT: usize = 20;
pub const RENDER_WIDTH_XSMALL: usize = 50;
pub const RENDER_WIDTH_SMALL: usize = 70;
pub const RENDER_WIDTH_MEDIUM: usize = 150;
pub const RENDER_WIDTH_LARGE: usize = usize::MAX;
/// The `Frontend` runs an applications' view concurrently. It handles
/// terminal events as well as state updates and renders the view accordingly.
///