diff --git a/docs/source/_static/theme_overrides.css b/docs/source/_static/theme_overrides.css index 3b1b86daac6a..0859beb788aa 100644 --- a/docs/source/_static/theme_overrides.css +++ b/docs/source/_static/theme_overrides.css @@ -84,3 +84,29 @@ Details: 8rem for search box etc*/ white-space: normal !important; } } + +/* Make wide tables scroll within the content area to avoid overlapping the + right sidebar. Prevents tables from bleeding underneath the sticky sidebar. */ +.bd-content table { + display: block; + overflow-x: auto; + -webkit-overflow-scrolling: touch; + max-width: 100%; +} + +/* Restore proper table display to maintain column alignment */ +.bd-content table thead, +.bd-content table tbody { display: table-row-group; } + +.bd-content table tr { display: table-row; } + +.bd-content table th, +.bd-content table td { + display: table-cell; + white-space: normal; +} + +/* Maintain striped styling when table scrolls */ +.bd-content table tbody tr:nth-of-type(odd) { + background-color: rgba(0, 0, 0, 0.03); +}