浏览代码

Prevent readme images from breaking the layout

Jordi Boggiano 9 年之前
父节点
当前提交
403e930360
共有 1 个文件被更改,包括 3 次插入0 次删除
  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,