Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix subagent card buttons getting clipped by long titles (#49648)
Eric Holk41c007f9eeea
diff --git a/crates/agent_ui/src/acp/thread_view/active_thread.rs b/crates/agent_ui/src/acp/thread_view/active_thread.rsindex 7dd0101f624..2630d3ffd6c 100644--- a/crates/agent_ui/src/acp/thread_view/active_thread.rs+++ b/crates/agent_ui/src/acp/thread_view/active_thread.rs@@ -6104,9 +6104,16 @@ impl AcpThreadView {.bg(self.tool_card_header_bg(cx)).child(h_flex()+ .id(format!("subagent-title-{}-{}", entry_ix, context_ix))+ .min_w_0()+ .overflow_hidden().gap_1p5().child(icon)- .child(Label::new(title.to_string()).size(LabelSize::Small))+ .child(+ Label::new(title.to_string())+ .size(LabelSize::Small)+ .truncate(),+ ).when(files_changed > 0, |this| {this.child(h_flex()@@ -6126,11 +6133,13 @@ impl AcpThreadView {diff_stats.lines_removed as usize,)),)- }),+ })+ .tooltip(Tooltip::text(title.to_string())),).when_some(session_id, |this, session_id| {this.child(h_flex()+ .flex_shrink_0().when(has_expandable_content, |this| {this.child(IconButton::new(