From 187586c5a69054a0cb5379e6b59cf94004c58751 Mon Sep 17 00:00:00 2001 From: Erik Kundt Date: Tue, 27 Feb 2024 15:45:38 +0100 Subject: [PATCH] issue: Remove filter icon and faint stats divider --- bin/commands/issue/flux/select/ui.rs | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/bin/commands/issue/flux/select/ui.rs b/bin/commands/issue/flux/select/ui.rs index 2e6a6e48..7a7fd661 100644 --- a/bin/commands/issue/flux/select/ui.rs +++ b/bin/commands/issue/flux/select/ui.rs @@ -16,6 +16,7 @@ use radicle_tui as tui; use tui::common::cob::issue::Filter; use tui::flux::ui::cob::IssueItem; use tui::flux::ui::span; +use tui::flux::ui::theme::style; use tui::flux::ui::widget::container::{Footer, FooterProps, Header, HeaderProps}; use tui::flux::ui::widget::{ Render, Shortcut, Shortcuts, ShortcutsProps, Table, TableProps, Widget, @@ -301,24 +302,19 @@ impl Render<()> for Issues { Constraint::Length(16), ]; - let filter = if !self.props.filter.to_string().is_empty() { - Line::from( - [ - span::badge("▼".to_string()), - span::default(" ".to_string()), - span::default(self.props.filter.to_string()).magenta().dim(), - ] - .to_vec(), - ) - } else { - Line::from([span::blank()].to_vec()) - }; + let filter = Line::from( + [ + span::default(" ".to_string()), + span::default(self.props.filter.to_string()).magenta().dim(), + ] + .to_vec(), + ); let stats = Line::from( [ span::positive(self.props.stats.get("Open").unwrap_or(&0).to_string()).dim(), span::default(" Open".to_string()).dim(), - span::default(" | ".to_string()).dim(), + span::default(" | ".to_string()).style(style::border(false)), span::default(self.props.stats.get("Closed").unwrap_or(&0).to_string()) .magenta() .dim(),