Skip to content

Your lightweight open-source personal agent.

fix(webui): keep Markdown table source inline in file previews

chengyongru95b2346ea59a
diff --git a/webui/src/globals.css b/webui/src/globals.css
index eddc3ebe2..3b633c7ac 100644
--- a/webui/src/globals.css
+++ b/webui/src/globals.css
@@ -701,6 +701,11 @@
overflow-x: auto;
}
+ /* Prism's Markdown table tokens must not pick up Tailwind's table layout. */
+ .not-prose pre .token.table {
+ display: inline;
+ }
+
/* Wide markdown tables scroll horizontally within the conversation column.
Tables are wrapped in an overflow-x:auto <div> by the markdown renderer's
custom `table` component (see MarkdownTextRenderer); min-w-max on the