From 2b16716ee1c78b39c1fdc0ade9950713d02d3da2 Mon Sep 17 00:00:00 2001 From: David Gil Date: Wed, 12 Aug 2015 18:58:48 +0200 Subject: [PATCH] add author-photo css class to author avatar --- app/assets/stylesheets/debates.scss | 5 ----- app/views/debates/show.html.erb | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/app/assets/stylesheets/debates.scss b/app/assets/stylesheets/debates.scss index 3faf62632..3aaa26b75 100644 --- a/app/assets/stylesheets/debates.scss +++ b/app/assets/stylesheets/debates.scss @@ -371,13 +371,8 @@ } .author-photo { - border-radius: 2px; - display: inline-block; - height: 32px; line-height: $line-height*2; margin-right: $line-height/4; - vertical-align: middle; - width: 32px; } .author { diff --git a/app/views/debates/show.html.erb b/app/views/debates/show.html.erb index 57d8140da..5967e6e55 100644 --- a/app/views/debates/show.html.erb +++ b/app/views/debates/show.html.erb @@ -14,7 +14,7 @@

<%= @debate.title %>

- <%= avatar_image(@debate.author, size: 32) %> + <%= avatar_image(@debate.author, size: 32, class: 'author-photo') %> <%= @debate.author.name %>