feat: show creation time next to pr title

This commit is contained in:
2026-05-12 02:19:08 +08:00
parent 2fe3f7b94f
commit 6168676ac0
11 changed files with 72 additions and 13 deletions

View File

@@ -205,7 +205,22 @@ impl PullRequestView {
.py_3()
.border_b_1()
.border_color(theme.colors.border)
.child(text(pr.title.clone()).w_full().text_xl().mb_1())
.child(
div()
.w_full()
.flex()
.flex_row()
.justify_between()
.items_center()
.child(text(pr.title.clone()).w_full().text_xl().mb_1())
.when_some(pr.created_at, |it, created_at| {
it.child(
text(created_at.format("%Y-%m-%d %H:%M").to_string())
.opacity(0.5)
.text_xs(),
)
}),
)
.child(metadata_line),
)
.child(