From 6e3b1725c3b15c3eff21366650f918718c33e018 Mon Sep 17 00:00:00 2001 From: skyc1e Date: Sun, 28 Jun 2026 23:32:48 +0200 Subject: [PATCH] fix(docs): contain wide markdown tables --- src/custom/_components.css | 18 +++++------------- src/custom/_sidebar.css | 1 + 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/src/custom/_components.css b/src/custom/_components.css index c4b98f54..c8059dc6 100644 --- a/src/custom/_components.css +++ b/src/custom/_components.css @@ -643,8 +643,9 @@ width proportionally. */ .theme-doc-markdown table, article table { - display: table; + display: block; width: 100%; + max-width: 100%; min-width: 100%; table-layout: auto; border: 1px solid var(--color-border); @@ -654,7 +655,9 @@ article table { border-spacing: 0; margin: 1.5rem 0; box-shadow: var(--shadow-sm); - overflow: hidden; /* clip content at the rounded corners */ + overflow-x: auto; + overflow-y: hidden; + -webkit-overflow-scrolling: touch; } /* Narrow trailing columns (common pattern — "Part" numbers, short @@ -726,17 +729,6 @@ article td code { padding: 1px 4px; } -@media (max-width: 768px) { - .theme-doc-markdown table, - article table { - display: block; - max-width: 100%; - overflow-x: auto; - overflow-y: hidden; - -webkit-overflow-scrolling: touch; - } -} - /* ========================================== 15) VERSION INDICATOR STYLING ========================================== */ diff --git a/src/custom/_sidebar.css b/src/custom/_sidebar.css index 57bf62f7..ac990471 100644 --- a/src/custom/_sidebar.css +++ b/src/custom/_sidebar.css @@ -11,6 +11,7 @@ /* Main docs content area - wider to fill space */ .theme-doc-markdown { max-width: 100%; /* Use full available width */ + min-width: 0; } /* ThemeClassNames.docs.docSidebarMenu */