Skip to content

Commit

Permalink
Use max-width and max-height to contstrain images, instead of height …
Browse files Browse the repository at this point in the history
…and width attributes. Also increased size slightly.
  • Loading branch information
ndbroadbent committed Jun 3, 2012
1 parent 314a477 commit 5a135a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 4 additions & 0 deletions app/assets/stylesheets/_activity.sass
Original file line number Diff line number Diff line change
Expand Up @@ -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.