Specify width and height for image
authorJohn Firebaugh <john.firebaugh@gmail.com>
Thu, 15 Aug 2013 16:51:48 +0000 (09:51 -0700)
committerJohn Firebaugh <john.firebaugh@gmail.com>
Thu, 22 Aug 2013 00:20:05 +0000 (17:20 -0700)
User-uploaded images don't get automatically scaled
like Gravatar images do.

app/assets/stylesheets/common.css.scss
app/views/layouts/_inbox.html.erb

index 6320a7d89e58c0af6241041c7a6adbd25db5cc89..c2f642edc52f539ffd7b8ceeef1f85d790506468 100644 (file)
@@ -573,7 +573,7 @@ a.donate {
   img {
     vertical-align: top;
     border-radius: 2px 0 0 2px;
-    padding-right: 5px;
+    margin-right: 5px;
   }
 
   #inboxanchor {
index 6dd6218eecb9434bd359f1de63044ccef8e95072..787dd8bfc496bdc4d814316ea8cb1d757a5d9dac 100644 (file)
@@ -1,3 +1,3 @@
 <span id="inboxanchor" class="count-number">
-  <img src='<%= user_image_url(@user, :size => 20) %>'><span><%= @user.new_messages.size %></span>
+  <img src='<%= user_image_url(@user, :size => 20) %>' width='20' height='20'><span><%= @user.new_messages.size %></span>
 </span>
\ No newline at end of file