Skip to content

Commit 0fa9e8b

Browse files
committed
ui: tweak post status position
1 parent ad3b6d9 commit 0fa9e8b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/display/colorful/post.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ pub fn list_post(
2222
{
2323
let buf = &mut buf;
2424
write!(buf, "{} {}", "#".dimmed(), entry.id.to_string().dimmed())?;
25-
write!(buf, " {}", entry.title.cyan().bold())?;
2625
if entry.is_published {
2726
write!(buf, " {}", "Pub".green())?;
2827
} else {
@@ -31,6 +30,7 @@ pub fn list_post(
3130
if entry.is_pinned {
3231
write!(buf, " {}", "Pin".magenta())?;
3332
}
33+
write!(buf, " {}", entry.title.cyan().bold())?;
3434
writeln!(buf)?;
3535
}
3636
buf

src/display/normal/post.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ pub fn list_post(
2121
{
2222
let buf = &mut buf;
2323
write!(buf, "# {}", entry.id)?;
24-
write!(buf, " {}", entry.title)?;
2524
if entry.is_published {
2625
write!(buf, " Pub")?;
2726
} else {
@@ -30,6 +29,7 @@ pub fn list_post(
3029
if entry.is_pinned {
3130
write!(buf, " Pin")?;
3231
}
32+
write!(buf, " {}", entry.title)?;
3333
writeln!(buf)?;
3434
}
3535
buf

0 commit comments

Comments
 (0)