From 1d12c2e7c013c1d4765a33cc2d46e878f4430f36 Mon Sep 17 00:00:00 2001 From: Danilo Leal Date: Mon, 1 Jun 2026 19:45:52 -0300 Subject: [PATCH] Improve label truncation --- crates/recent_projects/src/recent_projects.rs | 4 ++++ crates/recent_projects/src/sidebar_recent_projects.rs | 2 ++ 2 files changed, 6 insertions(+) diff --git a/crates/recent_projects/src/recent_projects.rs b/crates/recent_projects/src/recent_projects.rs index 3ad59a14db5093..a1c24120889ce4 100644 --- a/crates/recent_projects/src/recent_projects.rs +++ b/crates/recent_projects/src/recent_projects.rs @@ -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| { diff --git a/crates/recent_projects/src/sidebar_recent_projects.rs b/crates/recent_projects/src/sidebar_recent_projects.rs index 5e44e1a90ce428..21de23a1ce876e 100644 --- a/crates/recent_projects/src/sidebar_recent_projects.rs +++ b/crates/recent_projects/src/sidebar_recent_projects.rs @@ -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| {