From 67183203732fffe70769b71980029c7e278c5943 Mon Sep 17 00:00:00 2001 From: Kunall Banerjee Date: Mon, 19 Jan 2026 12:05:13 -0500 Subject: [PATCH] agent_ui: Use `.w_full()` instead of `.size_full()` when rendering markdown tables in lists (#46783) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This way, the table: - Determines its height by the grid’s content - Still keeps `width: 100%` so it fills its container horizontally | Before | After | |--------|--------| | image | image | Closes #46768 Release Notes: - Fixed issue where markdown tables rendered within lists would overlap items above/below it --- crates/markdown/src/markdown.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/markdown/src/markdown.rs b/crates/markdown/src/markdown.rs index a3256907ac410b1bfe9c40006f76b07e9a8390e6..7bd78320a25ea2c9324b2c523dda5e11278dab51 100644 --- a/crates/markdown/src/markdown.rs +++ b/crates/markdown/src/markdown.rs @@ -1120,7 +1120,7 @@ impl Element for MarkdownElement { .when(!self.style.table_columns_min_size, |this| { this.grid_cols(column_count as u16) }) - .size_full() + .w_full() .mb_2() .border(px(1.5)) .border_color(cx.theme().colors().border)