Skip to content

Commit

Permalink
fix: background colors breaking at horizontal scrolling on smaller de…
Browse files Browse the repository at this point in the history
…vices

The body now grows to fit all the content, which makes the background
colors of the theme no longer break
  • Loading branch information
Lukas Engelter committed Aug 16, 2023
1 parent 038f9b8 commit 8373cd3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGES
Expand Up @@ -86,6 +86,9 @@ Bugs fixed
Patch by Bénédikt Tran.
* #11591: Fix support for C coverage in ``sphinx.ext.coverage`` extension.
Patch by Stephen Finucane.
* #11594: HTML Theme: Enhancements to horizontal scrolling on smaller
devices in the ``agogo`` theme.
Patch by Lukas Engelter.

Testing
-------
Expand Down
4 changes: 4 additions & 0 deletions sphinx/themes/agogo/static/agogo.css_t
Expand Up @@ -19,6 +19,10 @@ body {
line-height: 1.4em;
color: black;
background-color: {{ theme_bgcolor }};

/* fix for background colors breaking at horizontal
scrolling on smaller devices */
min-width: fit-content;
}


Expand Down

0 comments on commit 8373cd3

Please sign in to comment.