Remove some inline css and minor refactoring

This commit is contained in:
theworldbright 2015-06-01 20:01:41 +09:00 committed by Jonne Haß
parent 207b6c6153
commit e372b4eb95
2 changed files with 11 additions and 9 deletions

View file

@ -633,15 +633,21 @@ select {
} }
.conversation_participants img.avatar{ .conversation_participants img.avatar {
height:35px; height:35px;
width:35px; width:35px;
margin: 5px 0 5px 2px; margin: 5px 0 5px 2px;
} }
.conversations img.avatar{ .conversations {
img.avatar {
margin: 10px; margin: 10px;
float: left; float: left;
}
.no-messages {
text-align: center;
margin-top: 40px;
}
} }
.unread_message_count { .unread_message_count {

View file

@ -20,11 +20,7 @@
= render partial: 'conversations/conversation', collection: @conversations, = render partial: 'conversations/conversation', collection: @conversations,
locals: { authors: @authors, unread_counts: @unread_counts } locals: { authors: @authors, unread_counts: @unread_counts }
- else - else
%br %div{ class: 'no-messages' }
%br
%br
%br
%div{ style: 'text-align:center;' }
%i %i
= t('.no_messages') = t('.no_messages')