Fixed a bug that had the wrong styling on system errors
This commit is contained in:
+2
-3
@@ -101,10 +101,9 @@ fn draw_error(f: &mut Frame<'_>, app: &mut App<'_>, area: Rect) {
|
|||||||
app.tick_count % app.ticks_until_scroll == 0,
|
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)
|
.block(block)
|
||||||
.wrap(Wrap { trim: true })
|
.wrap(Wrap { trim: true });
|
||||||
.primary();
|
|
||||||
|
|
||||||
f.render_widget(paragraph, area);
|
f.render_widget(paragraph, area);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user