Radish alpha
r
Radicle terminal user interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
issue: Improve selection progress rendering
Erik Kundt committed 2 years ago
commit 70208c35db09df969f2f7288c39c80ab33f6d797
parent 1d2b410a1c4c76e29f35c08df4884dc6e4cc648c
1 file changed +12 -2
modified bin/commands/issue/flux/select/ui.rs
@@ -350,13 +350,23 @@ impl Issues {
                    .magenta()
                    .dim(),
                span::default(" Closed".to_string()).dim(),
+
                span::default(" | ".to_string()).style(style::border(self.props.focus)),
+
                span::default("Σ ".to_string()).dim(),
+
                span::default(self.props.issues.len().to_string()).dim(),
            ]
            .to_vec(),
        )
        .alignment(Alignment::Right);

        let (step, len) = self.table.progress(self.props.issues.len());
-
        let progress = span::progress(step, len, false);
+
        let progress = Line::from(
+
            [
+
                span::default("| ".to_string()).style(style::border(self.props.focus)),
+
                span::progress(step, len),
+
            ]
+
            .to_vec(),
+
        )
+
        .alignment(Alignment::Left);

        self.footer.render::<B>(
            frame,
@@ -366,7 +376,7 @@ impl Issues {
                widths: [
                    Constraint::Fill(1),
                    Constraint::Fill(1),
-
                    Constraint::Length(progress.width() as u16),
+
                    Constraint::Length(7),
                ],
                focus: self.props.focus,
                cutoff: self.props.cutoff,