Radish alpha
r
Radicle terminal user interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Inbox: Improve selection filter rendering
Erik Kundt committed 2 years ago
commit ee8a14de52a5c0b27d3701478cfad1d8ab113c50
parent 053d3bc27bb87e01b820861b50dcf0ac04870446
1 file changed +2 -7
modified bin/commands/inbox/flux/select/ui.rs
@@ -277,6 +277,7 @@ impl Render<()> for Notifications {
            Constraint::Length(18),
        ];

+
        let filter = Line::from([span::blank()].to_vec());
        let stats = Line::from(
            [
                span::positive(self.props.stats.get("Seen").unwrap_or(&0).to_string()).dim(),
@@ -324,14 +325,8 @@ impl Render<()> for Notifications {
            frame,
            layout[2],
            FooterProps {
-
                cells: [
-
                    span::badge("/".to_string()).into(),
-
                    String::from("").into(),
-
                    stats.into(),
-
                    progress.clone().into(),
-
                ],
+
                cells: [filter.into(), stats.into(), progress.clone().into()],
                widths: [
-
                    Constraint::Length(3),
                    Constraint::Fill(1),
                    Constraint::Fill(1),
                    Constraint::Length(progress.width() as u16),