Skip to content

Commit

Permalink
Make pinterest embeds responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
obeyer committed Mar 16, 2017
1 parent 77acbcb commit 6782928
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Pass/PinterestTagTransformPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,7 @@ protected function setPinterestDimensionsFrom(DOMQuery $el, DOMQuery $new_el)
} else {
$new_el->attr($dimensions[$pin_width]);
}
// Add responsive so it doesn't look like sh*t
$new_el->attr('layout', 'responsive');
}
}

0 comments on commit 6782928

Please sign in to comment.