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:
parent
ce05813e7c
commit
06cbff6714
1 changed files with 5 additions and 4 deletions
|
@ -865,14 +865,15 @@ impl ActiveThread {
|
||||||
.border_b_1()
|
.border_b_1()
|
||||||
.border_color(cx.theme().colors().border)
|
.border_color(cx.theme().colors().border)
|
||||||
.child(Label::new("Input:"))
|
.child(Label::new("Input:"))
|
||||||
.child(div().p_2p5().text_ui(cx).map(|parent| {
|
.map(|parent| {
|
||||||
if let Some(markdown) = lua_script_markdown {
|
if let Some(markdown) = lua_script_markdown {
|
||||||
parent.child(markdown)
|
parent.child(markdown)
|
||||||
} else {
|
} else {
|
||||||
parent
|
parent.child(Label::new(
|
||||||
.child("Failed to render script input to Markdown")
|
"Failed to render script input to Markdown",
|
||||||
|
))
|
||||||
}
|
}
|
||||||
})),
|
}),
|
||||||
)
|
)
|
||||||
.map(|parent| match tool_use.status {
|
.map(|parent| match tool_use.status {
|
||||||
ToolUseStatus::Finished(output) => parent.child(
|
ToolUseStatus::Finished(output) => parent.child(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue