diff --git a/bin/commands/patch/list.rs b/bin/commands/patch/list.rs index 1195bfbe..2e52cc43 100644 --- a/bin/commands/patch/list.rs +++ b/bin/commands/patch/list.rs @@ -5,6 +5,7 @@ use anyhow::{anyhow, Result}; use radicle::prelude::RepoId; use radicle::storage::ReadStorage; +use ratatui::widgets::Clear; use serde::Serialize; use radicle::patch::cache::Patches; @@ -737,16 +738,19 @@ impl App { None, |ui| { ui.label(frame, ""); - ui.column_bar( - frame, - [Column::new( - Span::raw(" Loading ").magenta().rapid_blink(), - Constraint::Fill(1), - )] - .to_vec(), - Spacing::from(0), - Some(Borders::All), - ); + ui.layout(Layout::vertical([Constraint::Min(1)]), None, |ui| { + frame.render_widget(Clear, ui.area()); + ui.column_bar( + frame, + [Column::new( + Span::raw(" Loading ").magenta().rapid_blink(), + Constraint::Fill(1), + )] + .to_vec(), + Spacing::from(0), + Some(Borders::All), + ); + }); }, ); },