From 8a3f0778f5fec793f698cee7883d381d3ea5ba1a Mon Sep 17 00:00:00 2001 From: Augier Date: Sun, 14 Aug 2016 14:28:29 +0200 Subject: [PATCH] Fixes the avatar display on mobile the photo page --- app/assets/stylesheets/mobile/mobile.scss | 2 +- app/views/photos/show.mobile.haml | 16 +++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/app/assets/stylesheets/mobile/mobile.scss b/app/assets/stylesheets/mobile/mobile.scss index 20e565400..87e496e04 100644 --- a/app/assets/stylesheets/mobile/mobile.scss +++ b/app/assets/stylesheets/mobile/mobile.scss @@ -278,7 +278,7 @@ footer { font-size: larger; text-align: center; - img { + img:not(.avatar) { max-width: 100%; } diff --git a/app/views/photos/show.mobile.haml b/app/views/photos/show.mobile.haml index 6082e8edc..9428f9ec3 100644 --- a/app/views/photos/show.mobile.haml +++ b/app/views/photos/show.mobile.haml @@ -10,13 +10,15 @@ = image_tag photo.url(:scaled_full) .stream_element{:class => "photo_mobile"} .content - .from - = person_image_link(photo.author, :size => :thumb_small) - = person_link(photo.author) - .info - %span - = link_to(post_path(photo)) do - = timeago(photo.created_at) + .from.media + .media-left + = person_image_link(photo.author, class: "media-object", size: :thumb_small) + .media-body + = person_link(photo.author) + .info + %span + = link_to(post_path(photo)) do + = timeago(photo.created_at) -if additional_photos && additional_photos.length > 1 #photo_controls