agent: Remove layout shift due to the "waiting for confirmation" label (#34674)
Take 2 on https://github.com/zed-industries/zed/pull/33046. Release Notes: - N/A
This commit is contained in:
parent
f0a91502a9
commit
ed4deaa738
2 changed files with 5 additions and 3 deletions
|
@ -38,7 +38,7 @@ impl Tool for ContextServerTool {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn icon(&self) -> IconName {
|
fn icon(&self) -> IconName {
|
||||||
IconName::Cog
|
IconName::ToolHammer
|
||||||
}
|
}
|
||||||
|
|
||||||
fn source(&self) -> ToolSource {
|
fn source(&self) -> ToolSource {
|
||||||
|
|
|
@ -3202,7 +3202,10 @@ impl ActiveThread {
|
||||||
.border_color(self.tool_card_border_color(cx))
|
.border_color(self.tool_card_border_color(cx))
|
||||||
.rounded_b_lg()
|
.rounded_b_lg()
|
||||||
.child(
|
.child(
|
||||||
LoadingLabel::new("Waiting for Confirmation").size(LabelSize::Small)
|
div()
|
||||||
|
.min_w(rems_from_px(145.))
|
||||||
|
.child(LoadingLabel::new("Waiting for Confirmation").size(LabelSize::Small)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
.child(
|
.child(
|
||||||
h_flex()
|
h_flex()
|
||||||
|
@ -3247,7 +3250,6 @@ impl ActiveThread {
|
||||||
},
|
},
|
||||||
))
|
))
|
||||||
})
|
})
|
||||||
.child(ui::Divider::vertical())
|
|
||||||
.child({
|
.child({
|
||||||
let tool_id = tool_use.id.clone();
|
let tool_id = tool_use.id.clone();
|
||||||
Button::new("allow-tool-action", "Allow")
|
Button::new("allow-tool-action", "Allow")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue