add author-photo css class to author avatar
This commit is contained in:
@@ -371,13 +371,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.author-photo {
|
.author-photo {
|
||||||
border-radius: 2px;
|
|
||||||
display: inline-block;
|
|
||||||
height: 32px;
|
|
||||||
line-height: $line-height*2;
|
line-height: $line-height*2;
|
||||||
margin-right: $line-height/4;
|
margin-right: $line-height/4;
|
||||||
vertical-align: middle;
|
|
||||||
width: 32px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.author {
|
.author {
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
<h1><%= @debate.title %></h1>
|
<h1><%= @debate.title %></h1>
|
||||||
|
|
||||||
<div class="debate-info">
|
<div class="debate-info">
|
||||||
<%= avatar_image(@debate.author, size: 32) %>
|
<%= avatar_image(@debate.author, size: 32, class: 'author-photo') %>
|
||||||
<span class="author">
|
<span class="author">
|
||||||
<%= @debate.author.name %>
|
<%= @debate.author.name %>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user