agent: Improve consecutive tool use callout spacing (#30145)

Agus Zubiaga created

Release Notes:

- agent: Fix "consecutive tool use limit" callout spacing

Change summary

crates/agent/src/assistant_panel.rs | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)

Detailed changes

crates/agent/src/assistant_panel.rs 🔗

@@ -2338,14 +2338,13 @@ impl AssistantPanel {
             ""
         };
 
-        Some(
-            Banner::new()
-                .severity(ui::Severity::Info)
-                .child(h_flex().child(Label::new(format!(
-                    "Consecutive tool use limit reached.{max_mode_upsell}"
-                ))))
-                .into_any_element(),
-        )
+        let banner = Banner::new()
+            .severity(ui::Severity::Info)
+            .child(h_flex().child(Label::new(format!(
+                "Consecutive tool use limit reached.{max_mode_upsell}"
+            ))));
+
+        Some(div().px_2().pb_2().child(banner).into_any_element())
     }
 
     fn render_last_error(&self, cx: &mut Context<Self>) -> Option<AnyElement> {