From 3ad2c1d120797495ee5edd7a44bc7153d9e3c70e Mon Sep 17 00:00:00 2001 From: Danilo Leal Date: Thu, 18 Dec 2025 13:55:34 -0300 Subject: [PATCH] Iterate on the UI --- crates/ui/src/components/ai/tool_call.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/ui/src/components/ai/tool_call.rs b/crates/ui/src/components/ai/tool_call.rs index d597d5c8870e6236dd896790e6172bd5af356d1e..39ffe31c3a29140026560b91559c3175359ef02a 100644 --- a/crates/ui/src/components/ai/tool_call.rs +++ b/crates/ui/src/components/ai/tool_call.rs @@ -56,13 +56,13 @@ impl RenderOnce for ToolCall { .gap_1() .justify_between() .when(self.use_card_layout, |this| { - this.px_2() - .py_1() + this.p_1() .bg(cx.theme().colors().element_background.opacity(0.2)) }) .child( h_flex() .w_full() + .when(self.use_card_layout, |this| this.px_1p5()) .hover(|s| s.bg(cx.theme().colors().element_hover)) .gap_1p5() .rounded_xs() @@ -89,8 +89,8 @@ impl RenderOnce for ToolCall { .border_color(cx.theme().colors().border) .bg(cx.theme().colors().editor_background) } else { - this.pl_2() - .ml_2() + this.pl_1() + .ml_1() .border_l_1() .border_color(cx.theme().colors().border) }