feat: show creation time next to pr title
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user