Skip to content

Commit 3d9bf95

Browse files
committed
Initial attempt at this change
1 parent 1277f32 commit 3d9bf95

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

crates/git_ui/src/git_panel.rs

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4153,23 +4153,20 @@ impl GitPanel {
41534153
.items_center()
41544154
.flex_1()
41554155
// .overflow_hidden()
4156+
.child(
4157+
self.entry_label(format!("{display_name} "), label_color)
4158+
.when(status.is_deleted(), |this| this.strikethrough()),
4159+
)
41564160
.when_some(entry.parent_dir(path_style), |this, parent| {
41574161
if !parent.is_empty() {
41584162
this.child(
4159-
self.entry_label(
4160-
format!("{parent}{}", path_style.separator()),
4161-
path_color,
4162-
)
4163-
.when(status.is_deleted(), |this| this.strikethrough()),
4163+
self.entry_label(parent, path_color)
4164+
.when(status.is_deleted(), |this| this.strikethrough()),
41644165
)
41654166
} else {
41664167
this
41674168
}
4168-
})
4169-
.child(
4170-
self.entry_label(display_name, label_color)
4171-
.when(status.is_deleted(), |this| this.strikethrough()),
4172-
),
4169+
}),
41734170
)
41744171
.into_any_element()
41754172
}

0 commit comments

Comments
 (0)