Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix markdown table rendering in the agent panel (#52864)
Mikayla Maki20b140664d3b
diff --git a/crates/markdown/src/markdown.rs b/crates/markdown/src/markdown.rsindex 7b95688df54..024e377c253 100644--- a/crates/markdown/src/markdown.rs+++ b/crates/markdown/src/markdown.rs@@ -1609,23 +1609,18 @@ impl Element for MarkdownElement {builder.table.start(alignments.clone());let column_count = alignments.len();- builder.push_div(- div().flex().flex_col().items_start(),- range,- markdown_end,- );builder.push_div(div().id(("table", range.start))- .min_w_0().grid().grid_cols(column_count as u16).when(self.style.table_columns_min_size, |this| {this.grid_cols_min_content(column_count as u16)}).when(!self.style.table_columns_min_size, |this| {- this.grid_cols_max_content(column_count as u16)+ this.grid_cols(column_count as u16)})+ .w_full().mb_2().border(px(1.5)).border_color(cx.theme().colors().border)@@ -1770,7 +1765,6 @@ impl Element for MarkdownElement {}}MarkdownTagEnd::Table => {- builder.pop_div();builder.pop_div();builder.table.end();}