recent_projects: Improve label truncation (#58279)

Just a small tweak here making sure the recent project's list items
truncate properly, instead of being hard cut off.

Release Notes:

- N/A
This commit is contained in:
Danilo Leal authored and GitHub committed 2026-06-01 23:16:49 +00:00
1 parent 298222a756
commit 560de3d644
2 files changed
+6

No files matched your search

@@ -1258,6 +1258,7 @@ impl PickerDelegate for RecentProjectsDelegate {
h_flex()
.id("open_folder_item")
.w_full()
.min_w_0()
.gap_2p5()
.when(self.has_any_non_local_projects, |this| {
this.child(Icon::new(icon).color(Color::Muted))
@@ -1412,6 +1413,7 @@ impl PickerDelegate for RecentProjectsDelegate {
h_flex()
.id("open_project_info_container")
.w_full()
.min_w_0()
.gap_2p5()
.when(self.has_any_non_local_projects, |this| {
this.child(Icon::new(icon).color(Color::Muted))
@@ -1560,6 +1562,8 @@ impl PickerDelegate for RecentProjectsDelegate {
.child(
h_flex()
.id("project_info_container")
.w_full()
.min_w_0()
.gap_2p5()
.flex_grow_1()
.when(self.has_any_non_local_projects, |this| {
@@ -368,6 +368,8 @@ impl PickerDelegate for SidebarRecentProjectsDelegate {
.spacing(ListItemSpacing::Sparse)
.child(
h_flex()
.w_full()
.min_w_0()
.gap_3()
.flex_grow_1()
.when(self.has_any_non_local_projects, |this| {