chore: update dependencies

Some breaking changes in ratatui, should now all have been addressed
This commit is contained in:
Jack Wills
2024-02-12 16:20:02 +00:00
parent 76cd08ab2f
commit 10180d2e08
5 changed files with 131 additions and 97 deletions
+6 -10
View File
@@ -126,18 +126,14 @@ pub fn commands(
.collect::<Vec<_>>()
});
if let Some(i) = app_data.lock().get_control_state() {
let items = List::new(items)
.block(block)
.highlight_style(Style::default().add_modifier(Modifier::BOLD))
.highlight_symbol(RIGHT_ARROW);
let items = List::new(items)
.block(block)
.highlight_style(Style::default().add_modifier(Modifier::BOLD))
.highlight_symbol(RIGHT_ARROW);
f.render_stateful_widget(items, area, i);
} else {
let paragraph = Paragraph::new("")
.block(block)
.alignment(Alignment::Center);
let paragraph = Paragraph::new("").block(block).alignment(Alignment::Center);
f.render_widget(paragraph, area);
}
}
@@ -1111,7 +1107,7 @@ mod tests {
}
}
#[test]
#[test]
// Test that when DockerCommands are available, they are drawn correctly, dependant on container state
fn test_draw_blocks_commands_some() {
let (w, h) = (12, 6);