From 45fee7d8517dfbb508d578fdf8c45f85865ade9c Mon Sep 17 00:00:00 2001 From: Aaron Carlisle Date: Wed, 26 Feb 2025 16:38:42 -0500 Subject: [PATCH] PyAPI Docs: Increase the width of "On this page" region This helps prevent long text from wrapping but still looks nice in my opinion. In the future we might try to hide the base name part of the class but I think this would require a fix in sphinx. --- doc/python_api/static/css/theme_overrides.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/python_api/static/css/theme_overrides.css b/doc/python_api/static/css/theme_overrides.css index 10d08e7d27c..c13ced18754 100644 --- a/doc/python_api/static/css/theme_overrides.css +++ b/doc/python_api/static/css/theme_overrides.css @@ -15,6 +15,11 @@ body { --color-api-name: #e87d0d; } +/* Increase the width of "On this page" region. */ +.main > .toc-drawer { + width: auto; +} + h1, h2, h3 {