From e372b4eb954ad04778304d291cddf06a24bebfe3 Mon Sep 17 00:00:00 2001 From: theworldbright Date: Mon, 1 Jun 2015 20:01:41 +0900 Subject: [PATCH] Remove some inline css and minor refactoring --- app/assets/stylesheets/mobile/mobile.scss | 14 ++++++++++---- app/views/conversations/index.mobile.haml | 6 +----- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/app/assets/stylesheets/mobile/mobile.scss b/app/assets/stylesheets/mobile/mobile.scss index b2ac8de9d..cc70c0988 100644 --- a/app/assets/stylesheets/mobile/mobile.scss +++ b/app/assets/stylesheets/mobile/mobile.scss @@ -633,15 +633,21 @@ select { } -.conversation_participants img.avatar{ +.conversation_participants img.avatar { height:35px; width:35px; margin: 5px 0 5px 2px; } -.conversations img.avatar{ - margin: 10px; - float: left; +.conversations { + img.avatar { + margin: 10px; + float: left; + } + .no-messages { + text-align: center; + margin-top: 40px; + } } .unread_message_count { diff --git a/app/views/conversations/index.mobile.haml b/app/views/conversations/index.mobile.haml index 0c4fef326..31105e884 100644 --- a/app/views/conversations/index.mobile.haml +++ b/app/views/conversations/index.mobile.haml @@ -20,11 +20,7 @@ = render partial: 'conversations/conversation', collection: @conversations, locals: { authors: @authors, unread_counts: @unread_counts } - else - %br - %br - %br - %br - %div{ style: 'text-align:center;' } + %div{ class: 'no-messages' } %i = t('.no_messages')