Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

file_finder: Keep filenames visible for long paths (#62839)

María Craig1a332533aa8b
diff --git a/crates/file_finder/src/file_finder.rs b/crates/file_finder/src/file_finder.rs
index 4f8b5be5e4f..9d23844c9e6 100644
--- a/crates/file_finder/src/file_finder.rs
+++ b/crates/file_finder/src/file_finder.rs
@@ -2199,8 +2199,8 @@ impl FileFinderDelegate {
.w_full()
.min_w_0()
.gap_1p5()
- .child(file_name_label.truncate_middle())
- .child(full_path_label.truncate_start()),
+ .child(file_name_label.flex_none().truncate_middle())
+ .child(full_path_label.flex_1().truncate_start()),
)
.end_slot::<AnyElement>(end_slot),
)