agent: Remove layout shift due to the "waiting for confirmation" label (#34674)

Danilo Leal created

Take 2 on https://github.com/zed-industries/zed/pull/33046.

Release Notes:

- N/A

Change summary

crates/agent/src/context_server_tool.rs | 2 +-
crates/agent_ui/src/active_thread.rs    | 6 ++++--
2 files changed, 5 insertions(+), 3 deletions(-)

Detailed changes

crates/agent_ui/src/active_thread.rs 🔗

@@ -3202,7 +3202,10 @@ impl ActiveThread {
                                 .border_color(self.tool_card_border_color(cx))
                                 .rounded_b_lg()
                                 .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(
                                     h_flex()
@@ -3247,7 +3250,6 @@ impl ActiveThread {
                                                 },
                                             ))
                                         })
-                                        .child(ui::Divider::vertical())
                                         .child({
                                             let tool_id = tool_use.id.clone();
                                             Button::new("allow-tool-action", "Allow")