Skip to content

Commit

Permalink
ui: tweak post status position
Browse files Browse the repository at this point in the history
  • Loading branch information
Thaumy committed Sep 27, 2023
1 parent ad3b6d9 commit 0fa9e8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/display/colorful/post.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ pub fn list_post(
{
let buf = &mut buf;
write!(buf, "{} {}", "#".dimmed(), entry.id.to_string().dimmed())?;
write!(buf, " {}", entry.title.cyan().bold())?;
if entry.is_published {
write!(buf, " {}", "Pub".green())?;
} else {
Expand All @@ -31,6 +30,7 @@ pub fn list_post(
if entry.is_pinned {
write!(buf, " {}", "Pin".magenta())?;
}
write!(buf, " {}", entry.title.cyan().bold())?;
writeln!(buf)?;
}
buf
Expand Down
2 changes: 1 addition & 1 deletion src/display/normal/post.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ pub fn list_post(
{
let buf = &mut buf;
write!(buf, "# {}", entry.id)?;
write!(buf, " {}", entry.title)?;
if entry.is_published {
write!(buf, " Pub")?;
} else {
Expand All @@ -30,6 +29,7 @@ pub fn list_post(
if entry.is_pinned {
write!(buf, " Pin")?;
}
write!(buf, " {}", entry.title)?;
writeln!(buf)?;
}
buf
Expand Down

0 comments on commit 0fa9e8b

Please sign in to comment.