Permalink
Browse files

Use max-width and max-height to contstrain images, instead of height …

…and width attributes. Also increased size slightly.
  • Loading branch information...
1 parent 314a477 commit 5a135a1eb4713b0b488c12cd413c37d30eda3233 @ndbroadbent ndbroadbent committed Jun 3, 2012
@@ -5,7 +5,7 @@ class Kandan.Plugins.ImageEmbed
template: _.template '''
<div class="image-preview">
<a target="_blank" href="<%= imageUrl %>">
- <img class="image-embed" src="<%= imageUrl %>" height="200" width="200" />
+ <img class="image-embed" src="<%= imageUrl %>" />
</a>
<div class="name"><%= subtitle %></div>
</div>
@@ -62,3 +62,7 @@
.posted_at
background: #E6EAEB
color: #A9B1B6
+
+img.image-embed
+ max-width: 300px
+ max-height: 300px

0 comments on commit 5a135a1

Please sign in to comment.