Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

feat: Adjust table styling in WikiBrowser for improved layout

wizardchenc986773643ea
diff --git a/frontend/src/views/knowledge/wiki/WikiBrowser.vue b/frontend/src/views/knowledge/wiki/WikiBrowser.vue
index 584139e6d..a56b34155 100644
--- a/frontend/src/views/knowledge/wiki/WikiBrowser.vue
+++ b/frontend/src/views/knowledge/wiki/WikiBrowser.vue
@@ -2272,9 +2272,12 @@ onUnmounted(() => {
}
// ── Markdown tables (GFM) ──
+ // Use `width: fit-content` so tables shrink to their content instead of
+ // always stretching to fill the reader column, while still respecting
+ // `max-width: 100%` and allowing horizontal scrolling for wide tables.
:deep(table) {
display: block;
- width: 100%;
+ width: fit-content;
max-width: 100%;
overflow-x: auto;
margin: 0 0 16px;