From 2aa1559080fe3fcb919415ef75fcccaf85eaa017 Mon Sep 17 00:00:00 2001 From: Markos Narinian Date: Tue, 7 Apr 2026 06:55:12 +0300 Subject: [PATCH] agent_ui: Add padding to markdown output in card layout (#53194) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [x] Unsafe blocks (if any) have justifying comments - [x] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [x] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable Closes #53191 Release Notes: - Added padding to markdown output when rendered in card layout. Before: Screenshot 2026-04-01 at 3 32 After: Screenshot 2026-04-05 at 4 47 38 PM --- crates/agent_ui/src/conversation_view/thread_view.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/agent_ui/src/conversation_view/thread_view.rs b/crates/agent_ui/src/conversation_view/thread_view.rs index 9f9b5dff00536953b76a50b65a4ab64e427bc554..685621eb3c93632f1e7410bbbad22b623d5e18c7 100644 --- a/crates/agent_ui/src/conversation_view/thread_view.rs +++ b/crates/agent_ui/src/conversation_view/thread_view.rs @@ -7390,9 +7390,8 @@ impl ThreadView { .gap_2() .map(|this| { if card_layout { - this.when(context_ix > 0, |this| { - this.pt_2() - .border_t_1() + this.p_2().when(context_ix > 0, |this| { + this.border_t_1() .border_color(self.tool_card_border_color(cx)) }) } else {