Skip to content

Commit ce78c21

Browse files
GaelVaroquauxthomasjpfan
authored andcommitted
Avoid images overflowing horizontally on small screens (#12)
1 parent f16659a commit ce78c21

File tree

1 file changed

+5
-0
lines changed
  • doc/themes/scikit-learn-modern/static/css

1 file changed

+5
-0
lines changed

doc/themes/scikit-learn-modern/static/css/theme.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,11 @@ div.body img.align-center {
799799
max-width: 800px;
800800
}
801801

802+
div.body img {
803+
max-width: 100%;
804+
height: unset!important; /* Needed because sphinx sets the height */
805+
}
806+
802807
img.align-center, .figure.align-center, object.align-center {
803808
display: block;
804809
margin-left: auto;

0 commit comments

Comments
 (0)