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:
Danilo Leal 2025-07-17 20:46:16 -03:00 committed by GitHub
parent f0a91502a9
commit ed4deaa738
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View file

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

View file

@ -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")