Fix
This commit is contained in:
parent
389f2b886b
commit
512f597a0f
1 changed files with 4 additions and 4 deletions
|
|
@ -104,12 +104,12 @@ fn render_monitor_table(
|
|||
) {
|
||||
let max_items = area.height as usize;
|
||||
let items_to_show = min(monitors.len(), max_items);
|
||||
let index = monitors.len().saturating_sub(max_items.saturating_sub(2)); // 2 = Table header + botton
|
||||
let monitors = if is_first_half {
|
||||
&monitors[index..].to_vec()
|
||||
let index = if is_first_half {
|
||||
monitors.len().saturating_sub(max_items.saturating_sub(2)) // 2 = Table header + botton
|
||||
} else {
|
||||
monitors
|
||||
0
|
||||
};
|
||||
let monitors = &monitors[index..index + items_to_show.min(monitors.len() - index)];
|
||||
|
||||
let header_cells = vec![
|
||||
"".to_string(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue