Fixed a bug that had the wrong styling on system errors

This commit is contained in:
2024-02-13 18:42:58 -07:00
parent 8098223089
commit a982f610cb
+2 -3
View File
@@ -101,10 +101,9 @@ fn draw_error(f: &mut Frame<'_>, app: &mut App<'_>, area: Rect) {
app.tick_count % app.ticks_until_scroll == 0,
);
let paragraph = Paragraph::new(Text::from(app.error.to_string()).failure())
let paragraph = Paragraph::new(Text::from(app.error.to_string().failure()))
.block(block)
.wrap(Wrap { trim: true })
.primary();
.wrap(Wrap { trim: true });
f.render_widget(paragraph, area);
}