File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed
Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments