Skip to content

Commit c98e976

Browse files
authored
Merge pull request #139 from hugovk/mobile-wrap-long-code-literals
2 parents b2c46f5 + b2bd518 commit c98e976

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: python_docs_theme/static/pydoctheme.css

+7
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ form.inline-search input[type='submit'] {
8484

8585
div.document {
8686
display: flex;
87+
/* Don't let long code literals extend beyond the right side of the screen */
88+
overflow-wrap: break-word;
89+
}
90+
91+
/* Don't let long code literals extend beyond the right side of the screen */
92+
span.pre {
93+
white-space: unset;
8794
}
8895

8996
div.sphinxsidebar {

0 commit comments

Comments
 (0)