From 06cbff6714b154d61366774e45de422d0074b9f2 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Mon, 10 Mar 2025 18:29:50 -0400 Subject: [PATCH] assistant2: Remove excess padding around scripting tool inputs (#26412) This PR removes some excess padding around the rendered scripting tool inputs. Release Notes: - N/A --- crates/assistant2/src/active_thread.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/crates/assistant2/src/active_thread.rs b/crates/assistant2/src/active_thread.rs index a128b403b02d8bd6c5bf3b0154ade9db96fda3aa..55da7f56869841c5e17f382f3c3f7165afd91528 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(