Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
assistant2: Polish spacing and alignment (#27264)
Danilo Lealb32c792b6896
diff --git a/crates/assistant2/src/active_thread.rs b/crates/assistant2/src/active_thread.rsindex 030607d12b4..762664e1b14 100644--- a/crates/assistant2/src/active_thread.rs+++ b/crates/assistant2/src/active_thread.rs@@ -881,7 +881,14 @@ impl ActiveThread {let styled_message = match message.role {Role::User => v_flex().id(("message-container", ix))- .py_2()+ .map(|this| {+ if first_message {+ this.pt_2()+ } else {+ this.pt_4()+ }+ })+ .pb_4().pl_2().pr_2p5().child(@@ -991,7 +998,11 @@ impl ActiveThread {),Role::Assistant => v_flex().id(("message-container", ix))- .child(v_flex().py_2().px_4().child(message_content))+ .ml_2()+ .pl_2()+ .border_l_1()+ .border_color(cx.theme().colors().border_variant)+ .child(message_content).when(!tool_uses.is_empty() || !scripting_tool_uses.is_empty(),|parent| {@@ -1131,7 +1142,7 @@ impl ActiveThread {).into_any_element(),RenderedMessageSegment::Text(markdown) => {- div().p_2p5().child(markdown.clone()).into_any_element()+ div().child(markdown.clone()).into_any_element()}},),@@ -1305,7 +1316,7 @@ impl ActiveThread {_ => IconName::Terminal,};- div().px_4().child(+ div().py_2().pr_4().child(v_flex().rounded_lg().border_1()