Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
agent_ui: Fix double axis scroll in the edited files list (#45116)
Danilo Leala16f0712c8b4
diff --git a/crates/agent_ui/src/acp/thread_view.rs b/crates/agent_ui/src/acp/thread_view.rsindex e7c40db7118..63f0054ab7e 100644--- a/crates/agent_ui/src/acp/thread_view.rs+++ b/crates/agent_ui/src/acp/thread_view.rs@@ -4121,6 +4121,8 @@ impl AcpThreadView {.ml_1p5()});+ let full_path = path.display(path_style).to_string();+let file_icon = FileIcons::get_icon(path.as_std_path(), cx).map(Icon::from_path).map(|icon| icon.color(Color::Muted).size(IconSize::Small))@@ -4154,7 +4156,6 @@ impl AcpThreadView {.relative().pr_8().w_full()- .overflow_x_scroll().child(h_flex().id(("file-name-path", index))@@ -4166,7 +4167,14 @@ impl AcpThreadView {.child(file_icon).children(file_name).children(file_path)- .tooltip(Tooltip::text("Go to File"))+ .tooltip(move |_, cx| {+ Tooltip::with_meta(+ "Go to File",+ None,+ full_path.clone(),+ cx,+ )+ }).on_click({let buffer = buffer.clone();cx.listener(move |this, _, window, cx| {