Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

assistant2: Remove excess padding around scripting tool inputs (#26412)

Marshall Bowers06cbff6714b1
diff --git a/crates/assistant2/src/active_thread.rs b/crates/assistant2/src/active_thread.rs
index a128b403b02..55da7f56869 100644
--- a/crates/assistant2/src/active_thread.rs
+++ b/crates/assistant2/src/active_thread.rs
@@ -865,14 +865,15 @@ impl ActiveThread {
.border_b_1()
.border_color(cx.theme().colors().border)
.child(Label::new("Input:"))
- .child(div().p_2p5().text_ui(cx).map(|parent| {
+ .map(|parent| {
if let Some(markdown) = lua_script_markdown {
parent.child(markdown)
} else {
- parent
- .child("Failed to render script input to Markdown")
+ parent.child(Label::new(
+ "Failed to render script input to Markdown",
+ ))
}
- })),
+ }),
)
.map(|parent| match tool_use.status {
ToolUseStatus::Finished(output) => parent.child(