]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
💄 Fix code blocks in reference docs overflowing table width (#15094)
authorMotov Yurii <109919500+YuriiMotov@users.noreply.github.com>
Mon, 23 Mar 2026 13:56:46 +0000 (14:56 +0100)
committerGitHub <noreply@github.com>
Mon, 23 Mar 2026 13:56:46 +0000 (14:56 +0100)
docs/en/docs/css/custom.css
docs/en/mkdocs.yml

index e207197c7527e55f8f01e36cf194bbb84c58593a..bbfd49b55ef5ada2ef71cea4333a52c8f618e6a9 100644 (file)
@@ -254,6 +254,12 @@ Inspired by Termynal's CSS tricks with modifications
           box-shadow: 25px 0 0 #f4c025, 50px 0 0 #3ec930;
 }
 
+.doc-param-details .highlight {
+  overflow-x: auto;
+  width: 0;
+  min-width: 100%;
+}
+
 .md-typeset dfn {
   border-bottom: .05rem dotted var(--md-default-fg-color--light);
   cursor: help;
index 0db3e7a95b00bfafe4fc10573a4e2b92705f1d6a..4614194981b698b233fed0bf315a078026dfb1a5 100644 (file)
@@ -279,6 +279,7 @@ markdown_extensions:
   pymdownx.caret: null
   pymdownx.highlight:
     line_spans: __span
+    linenums_style: pymdownx-inline
   pymdownx.inlinehilite: null
   pymdownx.keys: null
   pymdownx.mark: null