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:
@@ -2272,9 +2272,12 @@ onUnmounted(() => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ── Markdown tables (GFM) ──
|
// ── 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) {
|
:deep(table) {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: fit-content;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
margin: 0 0 16px;
|
margin: 0 0 16px;
|
||||||
|
|||||||
Reference in New Issue
Block a user