From fe7efa89d16ddd6c1ff455b5f0d612e78ec3da2b Mon Sep 17 00:00:00 2001 From: Kenneth Date: Tue, 12 May 2026 02:44:42 +0800 Subject: [PATCH] feat: show pr status under creation date --- src/screen/dashboard/pull_request_view.rs | 29 ++++++++++++++--------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/src/screen/dashboard/pull_request_view.rs b/src/screen/dashboard/pull_request_view.rs index bc5fd7e..a4ee9e9 100644 --- a/src/screen/dashboard/pull_request_view.rs +++ b/src/screen/dashboard/pull_request_view.rs @@ -200,6 +200,10 @@ impl PullRequestView { .overflow_hidden() .child( div() + .flex() + .flex_row() + .justify_between() + .items_center() .w_full() .px_3p5() .py_3() @@ -209,19 +213,22 @@ impl PullRequestView { div() .w_full() .flex() - .flex_row() - .justify_between() - .items_center() + .flex_col() + .items_start() .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(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( div().flex_1().min_h_0().w_full().child(