From 27cdad0a0b8fcfd35fd9c673f1d11fe8f3471152 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Cabeza Date: Wed, 18 Nov 2015 13:33:22 +0100 Subject: [PATCH] Fixes deleted avatar on author's name --- app/assets/stylesheets/participation.scss | 10 ++++++++++ app/views/shared/_author_info.html.erb | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/participation.scss b/app/assets/stylesheets/participation.scss index a223dbb13..70ed1d621 100644 --- a/app/assets/stylesheets/participation.scss +++ b/app/assets/stylesheets/participation.scss @@ -381,6 +381,7 @@ color: $text-medium; font-weight: lighter; line-height: $line-height*2; + position: relative; text-align: justify; a { @@ -392,6 +393,15 @@ line-height: $line-height; margin-bottom: 0; } + + .author-deleted { + left: 0; + top: 4px; + } + + .author.deleted { + margin-left: rem-calc(48); + } } .debate-description, .proposal-description { diff --git a/app/views/shared/_author_info.html.erb b/app/views/shared/_author_info.html.erb index ef46a84bd..7370ec10f 100644 --- a/app/views/shared/_author_info.html.erb +++ b/app/views/shared/_author_info.html.erb @@ -1,6 +1,6 @@ <% if resource.author.hidden? || resource.author.erased? %> - + <%= t("shared.author_info.author_deleted") %> <% else %>