diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2020-05-09 16:23:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-09 16:23:15 -0400 |
commit | 90272777f7451c7e16e7d71f44f7c00133626177 (patch) | |
tree | 2d666a41fc852aad79f5ee6b1765fd433e1f86c6 /src/constants.rs | |
parent | 2e4d6a34aaf14ac18718f89397f70ab446c88c8d (diff) |
change: hide table gap if widget height is small
Diffstat (limited to 'src/constants.rs')
-rw-r--r-- | src/constants.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/constants.rs b/src/constants.rs index ee6752e7..d7d33af1 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -23,6 +23,10 @@ pub const NUM_COLOURS: i32 = 256; // The minimum threshold when resizing tables pub const FORCE_MIN_THRESHOLD: usize = 5; +// Limits for when we should stop showing table gaps/labels (anything less means not shown) +pub const TABLE_GAP_HEIGHT_LIMIT: u16 = 7; +pub const TIME_LABEL_HEIGHT_LIMIT: u16 = 7; + // Side borders lazy_static! { pub static ref SIDE_BORDERS: tui::widgets::Borders = |