mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-24 23:46:41 +02:00
Use length instead of percentage for constraint
This commit is contained in:
parent
7209ae37c0
commit
738bce9a21
1 changed files with 1 additions and 3 deletions
|
@ -815,9 +815,7 @@ impl TTApp {
|
|||
}
|
||||
let constraints: Vec<Constraint> = widths
|
||||
.iter()
|
||||
.map(|i| {
|
||||
Constraint::Percentage(std::cmp::min(70, std::cmp::max(*i, 5)).try_into().unwrap())
|
||||
})
|
||||
.map(|i| Constraint::Length((*i).try_into().unwrap_or(10)))
|
||||
.collect();
|
||||
|
||||
let t = Table::new(header, rows.into_iter())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue