feat: Adjust table styling in WikiBrowser for improved layout

- Modified the CSS for markdown tables to use `width: fit-content`, allowing tables to shrink to their content while still respecting `max-width: 100%`.
- This change enhances the presentation of tables, ensuring better usability and visual consistency within the WikiBrowser interface.
This commit is contained in:
wizardchen
2026-04-22 19:42:10 +08:00
parent 55ebb89ba5
commit c986773643
@@ -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;