Fix CI/CD: Update ratatui dependencies and ignore unmaintained paste warning

- Updated ratatui from 0.24 to 0.29 to get latest features
- Updated crossterm from 0.27 to 0.29 for compatibility
- Updated tui-input from 0.8 to 0.14
- Updated unicode-width from 0.1 to 0.2
- Fixed ratatui API changes:
  - Use Frame::area() instead of deprecated Frame::size()
  - Table::new() now requires widths as second parameter
  - Use row_highlight_style() instead of deprecated highlight_style()
- Added ignore for RUSTSEC-2024-0436 (paste unmaintained warning)
  - This is a transitive dependency through ratatui/tui-input
  - The crate still works fine, just not actively maintained
This commit is contained in:
pandaadir05
2025-11-21 14:30:21 +02:00
parent 482138d91e
commit d09429ea2e
4 changed files with 244 additions and 64 deletions

View File

@@ -33,7 +33,7 @@ mod colors {
use colors::*;
pub fn draw(f: &mut Frame, app: &App) {
let size = f.size();
let size = f.area();
// Create main layout
let chunks = Layout::default()
@@ -313,22 +313,24 @@ fn draw_processes(f: &mut Frame, area: Rect, app: &App) {
})
.collect();
let table = Table::new(rows)
.header(header)
.block(
Block::default()
.borders(Borders::ALL)
.title("System Processes")
.border_style(Style::default().fg(PRIMARY)),
)
.highlight_style(Style::default().bg(PRIMARY).fg(BACKGROUND))
.widths(&[
let table = Table::new(
rows,
&[
Constraint::Length(8),
Constraint::Length(8),
Constraint::Min(20),
Constraint::Length(8),
Constraint::Length(15),
]);
],
)
.header(header)
.block(
Block::default()
.borders(Borders::ALL)
.title("System Processes")
.border_style(Style::default().fg(PRIMARY)),
)
.row_highlight_style(Style::default().bg(PRIMARY).fg(BACKGROUND));
let mut state = app.processes_state.clone();
f.render_stateful_widget(table, chunks[0], &mut state);