From 638ceb73b7ec3980435daf70da5022e5d3c0d975 Mon Sep 17 00:00:00 2001 From: Cody Glassman Date: Wed, 18 Jun 2025 06:16:09 -0700 Subject: [PATCH] docs - fix layout shift when expanding TOC --- docs/source/_static/theme-override.css | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/source/_static/theme-override.css b/docs/source/_static/theme-override.css index 460812aca4..24b5c0273a 100644 --- a/docs/source/_static/theme-override.css +++ b/docs/source/_static/theme-override.css @@ -78,4 +78,9 @@ tbody tr:hover { .container:has(#left-sidebar) { grid-template-columns: 310px minmax(0, 1fr); } -} \ No newline at end of file +} + +/* Always enable scrollbar in left TOC to prevent layout shifts when expanding */ +#left-sidebar { + overflow-y: scroll; +}