From 1d5904d478474716470d67e38e9685a41257fd4e Mon Sep 17 00:00:00 2001 From: kikito Date: Mon, 21 Sep 2015 12:47:13 +0200 Subject: [PATCH 1/2] displays the complete text of the proposal in the moderation interface --- app/assets/stylesheets/admin.scss | 5 ++++- app/views/moderation/proposals/index.html.erb | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/admin.scss b/app/assets/stylesheets/admin.scss index 26c38f17a..1cd29620d 100644 --- a/app/assets/stylesheets/admin.scss +++ b/app/assets/stylesheets/admin.scss @@ -204,9 +204,12 @@ body.admin { } .proposal-description { - height: rem-calc(60); + height: rem-calc(65); overflow: hidden; max-width: rem-calc(750); + &:hover { + height: auto; + } } // 04. Stats diff --git a/app/views/moderation/proposals/index.html.erb b/app/views/moderation/proposals/index.html.erb index f8939932b..59b9f4b7a 100644 --- a/app/views/moderation/proposals/index.html.erb +++ b/app/views/moderation/proposals/index.html.erb @@ -40,7 +40,7 @@  •  <%= proposal.author.username %>
-
+
<%= proposal.description %>
From 80d4d2ff7af57428829e6bad88ea4b230d4c2d35 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Cabeza Date: Mon, 21 Sep 2015 13:14:14 +0200 Subject: [PATCH 2/2] Adds animation on proposals full text --- app/assets/stylesheets/admin.scss | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/admin.scss b/app/assets/stylesheets/admin.scss index 1cd29620d..337ce4b0e 100644 --- a/app/assets/stylesheets/admin.scss +++ b/app/assets/stylesheets/admin.scss @@ -204,11 +204,18 @@ body.admin { } .proposal-description { - height: rem-calc(65); + max-height: rem-calc(65); overflow: hidden; max-width: rem-calc(750); + &:hover { - height: auto; + cursor: text; + max-height: rem-calc(1000); + outline: 3px solid #ffbf47; + padding: rem-calc(12); + transition: max-height 0.9s; + -moz-transition: max-height 0.9s; + -webkit-transition: max-height 0.9s; } }