From a751a5a154dfe358c8d4ca0fa1ebc41c2c48b3bd Mon Sep 17 00:00:00 2001 From: sai Date: Tue, 23 Sep 2025 12:28:48 +0530 Subject: [PATCH 1/2] solved bug --- docs/source/_static/theme_overrides.css | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/docs/source/_static/theme_overrides.css b/docs/source/_static/theme_overrides.css index 3b1b86daac6a..f9b381d81707 100644 --- a/docs/source/_static/theme_overrides.css +++ b/docs/source/_static/theme_overrides.css @@ -84,3 +84,26 @@ Details: 8rem for search box etc*/ white-space: normal !important; } } + +/* Make wide tables scroll within the content area to avoid overlapping the + right (secondary) sidebar in pydata-sphinx-theme. This keeps tables from + bleeding underneath the sticky sidebar on wide pages like configs.md. */ +.bd-content table.docutils, +.bd-content table { + display: block; + overflow-x: auto; + -webkit-overflow-scrolling: touch; + max-width: 100%; +} + +/* Ensure table rows don't collapse height when display:block is applied */ +.bd-content table thead, +.bd-content table tbody { + display: table; + width: 100%; +} + +/* Keep striped styling visible even when table scrolls */ +.bd-content table tbody tr:nth-of-type(odd) { + background-color: rgba(0, 0, 0, 0.03); +} From 87f10e578086d2f00b55b204e1c959a0ccace06d Mon Sep 17 00:00:00 2001 From: sai Date: Tue, 23 Sep 2025 20:55:04 +0530 Subject: [PATCH 2/2] fix:modified css for table overlapping --- docs/source/_static/theme_overrides.css | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/docs/source/_static/theme_overrides.css b/docs/source/_static/theme_overrides.css index f9b381d81707..0859beb788aa 100644 --- a/docs/source/_static/theme_overrides.css +++ b/docs/source/_static/theme_overrides.css @@ -86,9 +86,7 @@ Details: 8rem for search box etc*/ } /* Make wide tables scroll within the content area to avoid overlapping the - right (secondary) sidebar in pydata-sphinx-theme. This keeps tables from - bleeding underneath the sticky sidebar on wide pages like configs.md. */ -.bd-content table.docutils, + right sidebar. Prevents tables from bleeding underneath the sticky sidebar. */ .bd-content table { display: block; overflow-x: auto; @@ -96,14 +94,19 @@ Details: 8rem for search box etc*/ max-width: 100%; } -/* Ensure table rows don't collapse height when display:block is applied */ +/* Restore proper table display to maintain column alignment */ .bd-content table thead, -.bd-content table tbody { - display: table; - width: 100%; +.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; } -/* Keep striped styling visible even when table scrolls */ +/* Maintain striped styling when table scrolls */ .bd-content table tbody tr:nth-of-type(odd) { background-color: rgba(0, 0, 0, 0.03); }