mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-10-18 19:10:36 +08:00
patch/list: Clear loading popup area
This commit is contained in:
+14
-10
@@ -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),
|
||||
);
|
||||
});
|
||||
},
|
||||
);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user