style: src/app.rs

This commit is contained in:
Erica Marigold 2025-08-14 09:44:39 +01:00
parent dbd6ae9dad
commit 655f9d624c
Signed by: DevComp
SSH key fingerprint: SHA256:jD3oMT4WL3WHPJQbrjC3l5feNCnkv7ndW8nYaHX5wFw

View file

@ -121,7 +121,8 @@ impl App {
// Force the dimensions to be validated before rendering anything by sending a `Resize` event
let term_size = tui.terminal.try_lock()?.size()?;
tui.event_tx.send(Event::Resize(term_size.width, term_size.height))?;
tui.event_tx
.send(Event::Resize(term_size.width, term_size.height))?;
// Blocking initialization logic for tui and components
block_in_place(|| {
@ -305,6 +306,8 @@ impl App {
let error_width = error_message.chars().count().try_into().unwrap_or(55);
let error_height = 5;
#[rustfmt::skip]
let area = Block::default()
.borders(Borders::all())
.style(Style::new().fg(Color::White))