From 71d785ba788589cf6afef30f1574a85bba518e10 Mon Sep 17 00:00:00 2001 From: decabeza Date: Sat, 7 Oct 2017 19:38:17 +0200 Subject: [PATCH] improves polls index view on mobile version --- app/assets/stylesheets/participation.scss | 5 ++++- app/views/polls/_poll_group.html.erb | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/participation.scss b/app/assets/stylesheets/participation.scss index fc0948a28..9db08b7ff 100644 --- a/app/assets/stylesheets/participation.scss +++ b/app/assets/stylesheets/participation.scss @@ -1658,7 +1658,10 @@ .poll { &.with-image { - padding: 0 $line-height / 2 0 0; + + @include breakpoint(medium) { + padding: 0 $line-height / 2 0 0; + } img { height: 100%; diff --git a/app/views/polls/_poll_group.html.erb b/app/views/polls/_poll_group.html.erb index b9cbb3c95..529e9a99e 100644 --- a/app/views/polls/_poll_group.html.erb +++ b/app/views/polls/_poll_group.html.erb @@ -5,7 +5,7 @@ <%= t("polls.index.already_answer") %> <% end %> -
+
<% if poll.image.present? %>