Browse Source

Prevent readme images from breaking the layout

Jordi Boggiano 9 years ago
parent
commit
403e930360
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/Packagist/WebBundle/Resources/public/css/main.css

+ 3 - 0
src/Packagist/WebBundle/Resources/public/css/main.css

@@ -949,6 +949,9 @@ ul.packages .metadata-block:last-child {
   max-height: 300px;
   overflow-y: hidden;
 }
+.wrapper .content .package .readme img {
+  max-width: 100%;
+}
 .wrapper .content .package .readme h1:first-child,
 .wrapper .content .package .readme p:first-child,
 .wrapper .content .package .readme h2:first-child,