From 5a4819ba6486f556a5e2305590ca1a2da53fd6b5 Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Tue, 17 Mar 2026 15:11:01 -0400 Subject: [PATCH] Move worktree tooltip out of icon Co-authored-by: Anthony Eid --- crates/ui/src/components/ai/thread_item.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/ui/src/components/ai/thread_item.rs b/crates/ui/src/components/ai/thread_item.rs index 0cfbd090ebec99b65bc7067afcca8a0d4ac44006..d2a4f6cb6b07cd770892408ff1753fc931f8f3b2 100644 --- a/crates/ui/src/components/ai/thread_item.rs +++ b/crates/ui/src/components/ai/thread_item.rs @@ -346,7 +346,7 @@ impl RenderOnce for ThreadItem { .min_w_0() .gap_1p5() .child(icon_container()) // Icon Spacing - .when_some(worktree_path, |this, path| { + .when(worktree_path.is_some(), |this| { this.child( div().child( Icon::new(IconName::GitBranch) @@ -375,7 +375,9 @@ impl RenderOnce for ThreadItem { .color(Color::Muted), ) }) - .tooltip(Tooltip::text(format!("Worktree: {}", path))), + .when_some(worktree_path, |this, path| { + this.tooltip(Tooltip::text(format!("Worktree: {}", path))) + }), ) }) .when(!has_worktree && (has_diff_stats || has_timestamp), |this| {