feat: show pr status under creation date

This commit is contained in:
2026-05-12 02:44:42 +08:00
parent 6168676ac0
commit fe7efa89d1

View File

@@ -200,6 +200,10 @@ impl PullRequestView {
.overflow_hidden() .overflow_hidden()
.child( .child(
div() div()
.flex()
.flex_row()
.justify_between()
.items_center()
.w_full() .w_full()
.px_3p5() .px_3p5()
.py_3() .py_3()
@@ -209,19 +213,22 @@ impl PullRequestView {
div() div()
.w_full() .w_full()
.flex() .flex()
.flex_row() .flex_col()
.justify_between() .items_start()
.items_center()
.child(text(pr.title.clone()).w_full().text_xl().mb_1()) .child(text(pr.title.clone()).w_full().text_xl().mb_1())
.when_some(pr.created_at, |it, created_at| { .child(metadata_line),
it.child(
text(created_at.format("%Y-%m-%d %H:%M").to_string())
.opacity(0.5)
.text_xs(),
)
}),
) )
.child(metadata_line), .child(div().flex().flex_col().items_end().gap_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(status_pill)
},
)),
) )
.child( .child(
div().flex_1().min_h_0().w_full().child( div().flex_1().min_h_0().w_full().child(