Skip to content

Commit 86b828b

Browse files
committed
Initial attempt at this change
1 parent 222767e commit 86b828b

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
@@ -4157,23 +4157,20 @@ impl GitPanel {
41574157
.items_center()
41584158
.flex_1()
41594159
// .overflow_hidden()
4160+
.child(
4161+
self.entry_label(format!("{display_name} "), label_color)
4162+
.when(status.is_deleted(), |this| this.strikethrough()),
4163+
)
41604164
.when_some(entry.parent_dir(path_style), |this, parent| {
41614165
if !parent.is_empty() {
41624166
this.child(
4163-
self.entry_label(
4164-
format!("{parent}{}", path_style.separator()),
4165-
path_color,
4166-
)
4167-
.when(status.is_deleted(), |this| this.strikethrough()),
4167+
self.entry_label(parent, path_color)
4168+
.when(status.is_deleted(), |this| this.strikethrough()),
41684169
)
41694170
} else {
41704171
this
41714172
}
4172-
})
4173-
.child(
4174-
self.entry_label(display_name, label_color)
4175-
.when(status.is_deleted(), |this| this.strikethrough()),
4176-
),
4173+
}),
41774174
)
41784175
.into_any_element()
41794176
}

0 commit comments

Comments
 (0)