Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
don't force images in pod to have block layout
  • Loading branch information
haarg committed May 13, 2017
1 parent 9e22f12 commit 6cb3e64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MetaCPAN/Web/Controller/Pod.pm
Expand Up @@ -168,7 +168,7 @@ sub view : Private {
},
replace_img => sub {
my ( $tagname, $attrs, $text ) = @_;
my $tag = '<img class="img-responsive"';
my $tag = '<img';
for my $attr (qw( alt border height width src title)) {
next
unless exists $attrs->{$attr};
Expand Down
1 change: 1 addition & 0 deletions root/static/less/pod.less
Expand Up @@ -49,6 +49,7 @@

img {
vertical-align: top;
.img-responsive(inline-block);
}

pre {
Expand Down

0 comments on commit 6cb3e64

Please sign in to comment.