Skip to content

Commit

Permalink
chore(term): make column order consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
ymgyt committed May 5, 2024
1 parent 1cf0160 commit fecafd9
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions crates/synd_term/src/ui/components/subscription.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,16 +245,16 @@ impl Subscription {
}
};
let header = Row::new([
Cell::from(format!("󰑫 Feed {n}/{m}")),
Cell::from(" Updated"),
Cell::from(format!("󰑫 Feed {n}/{m}")),
Cell::from(" URL"),
Cell::from("󰎞 Description"),
Cell::from(" Req"),
]);

let constraints = [
Constraint::Length(11),
Constraint::Fill(1),
Constraint::Length(10),
Constraint::Fill(1),
Constraint::Fill(2),
Constraint::Length(5),
Expand Down Expand Up @@ -286,13 +286,18 @@ impl Subscription {
.unwrap_or_else(|| ui::default_icon());

Row::new([
Cell::from(Span::from(updated)),
Cell::from(Line::from(vec![
Span::from(icon.symbol()).fg(icon.color().unwrap_or(cx.theme.default_icon_fg)),
Span::from(" "),
Span::from(title),
])),
Cell::from(Span::from(updated)),
Cell::from(Span::from(website_url)),
Cell::from(Span::from(
website_url
.trim_start_matches("http://")
.trim_start_matches("https://")
.trim_end_matches('/'),
)),
Cell::from(Span::from(desc)),
Cell::from(Line::from(requirement)),
])
Expand All @@ -317,7 +322,7 @@ impl Subscription {
bottom: 0,
})
.title(
Title::from(" Feed Detail ")
Title::from(" Detail ")
.position(Position::Top)
.alignment(Alignment::Center),
)
Expand Down

0 comments on commit fecafd9

Please sign in to comment.