fix bar formatting
This commit is contained in:
@@ -27,7 +27,7 @@ pub fn style_bar<'s, const N: usize>(
|
||||
let remaining_width = remaining_width.saturating_sub((INFO_WIDTH as u16 + 3) * 2);
|
||||
|
||||
let possible_chunks = remaining_width.saturating_div(INFO_WIDTH as u16 + 3);
|
||||
let possible_chunks = possible_chunks.min(4);
|
||||
let possible_chunks = possible_chunks.min(3);
|
||||
let leftover_width = ((INFO_WIDTH as u16 + 3) * 2)
|
||||
+ remaining_width.saturating_sub(possible_chunks * (INFO_WIDTH as u16 + 3));
|
||||
let download_done_human = pad_string(
|
||||
|
||||
Reference in New Issue
Block a user