Commit 67287318

mo <mo.khan@gmail.com>
2017-09-09 05:05:33
remove fixed width for avatar.
1 parent 5fea9fe
Changed files (1)
app/helpers/application_helper.rb
@@ -1,7 +1,7 @@
 module ApplicationHelper
-  def avatar_for(user, size: 260, clazz: '')
+  def avatar_for(user, size: 260, clazz: 'img-thumbnail')
     return gravatar_for(user, size) if user.avatar == nil || !user.avatar.image.present?
-    image_tag(user.avatar.url_for(:thumb), alt: user.name, class: clazz, style: "width:#{size}px;")
+    image_tag(user.avatar.url_for(:thumb), alt: user.name, class: clazz)
   end
 
   def gravatar_for(user, size)