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
This commit is contained in:
Marshall Bowers 2025-03-10 18:29:50 -04:00 committed by GitHub
parent ce05813e7c
commit 06cbff6714
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(