Fix image stretching

By setting height to 200 you were causing images to stretch.  Setting it to a max-height, makes it fit auto resize to fit your max height.
pull/544/head
Aaron Ogle 11 years ago
parent 9dd3beff2c
commit 2276202a92
  1. 2
      packages/rocketchat-oembed/client/oembedImageWidget.html

@ -2,7 +2,7 @@
<a href="{{url}}" target="_blank">
{{#if parsedUrl}}
<blockquote>
<img src="{{url}}" height="200" style="max-width: 100%" />
<img src="{{url}}" style="max-width: 100%; max-height: 200px;" />
</blockquote>
{{/if}}
</a>

Loading…
Cancel
Save