mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-11-28 22:10:27 +08:00
Inbox: Improve selection filter rendering
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user