Git · CommitItem: narrow, the details give way before the subject
This commit is contained in:
1 file changed
+16
-17
+16
-17
@@ -106,28 +106,27 @@ impl RenderOnce for CommitItem {
|
|||||||
.child(
|
.child(
|
||||||
div()
|
div()
|
||||||
.flex_1()
|
.flex_1()
|
||||||
.min_w_0()
|
.min_w_24()
|
||||||
.text_color(colors.fg)
|
.text_color(colors.fg)
|
||||||
.child(Ellipsis::new(commit.subject)),
|
.child(Ellipsis::new(commit.subject)),
|
||||||
)
|
)
|
||||||
|
// Narrow, the details give way before the subject.
|
||||||
.child(
|
.child(
|
||||||
div()
|
div()
|
||||||
.flex_none()
|
.flex_shrink()
|
||||||
.text_color(colors.fg_muted)
|
.min_w_0()
|
||||||
.child(commit.author),
|
.overflow_hidden()
|
||||||
)
|
.whitespace_nowrap()
|
||||||
.child(
|
.flex()
|
||||||
div()
|
.gap_2()
|
||||||
.flex_none()
|
.child(div().text_color(colors.fg_muted).child(commit.author))
|
||||||
.font_family(theme.mono_family.clone())
|
.child(
|
||||||
.text_color(colors.fg_subtle)
|
div()
|
||||||
.child(short),
|
.font_family(theme.mono_family.clone())
|
||||||
)
|
.text_color(colors.fg_subtle)
|
||||||
.child(
|
.child(short),
|
||||||
div()
|
)
|
||||||
.flex_none()
|
.child(div().text_color(colors.fg_subtle).child(commit.when)),
|
||||||
.text_color(colors.fg_subtle)
|
|
||||||
.child(commit.when),
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user