diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rs index e9bf92c93d0..d00f20dcf64 100644 --- a/crates/git_ui/src/git_panel.rs +++ b/crates/git_ui/src/git_panel.rs @@ -9336,7 +9336,13 @@ impl GitPanel { .bg(base_bg) .hover(|s| s.bg(hover_bg)) .active(|s| s.bg(active_bg)) - .child(name_row) + .child( + h_flex() + .min_w_0() + .flex_1() + .overflow_hidden() + .child(name_row), + ) .when(GitPanelSettings::get_global(cx).diff_stats, |el| { el.when_some(entry.diff_stat, move |this, stat| { let id = format!("diff-stat-{}", id_for_diff_stat);