From ae5bebdf7c2d0a689748585e850fd4be4365b337 Mon Sep 17 00:00:00 2001 From: Erik Kundt Date: Mon, 26 Feb 2024 10:07:53 +0100 Subject: [PATCH] patch: Improve selection progress --- bin/commands/patch/flux/select/ui.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/commands/patch/flux/select/ui.rs b/bin/commands/patch/flux/select/ui.rs index a0b63af0..7e2248a6 100644 --- a/bin/commands/patch/flux/select/ui.rs +++ b/bin/commands/patch/flux/select/ui.rs @@ -369,9 +369,6 @@ impl Render<()> for Patches { }, ); - let (step, len) = self.table.progress(self.props.patches.len()); - - let progress = span::badge(format!("{}/{}", step, len)); let filter = span::default(self.props.filter.to_string()).magenta().dim(); let stats = Line::from( [ @@ -395,6 +392,9 @@ impl Render<()> for Patches { ) .alignment(Alignment::Right); + let (step, len) = self.table.progress(self.props.patches.len()); + let progress = span::progress(step, len, false); + self.footer.render::( frame, layout[2],