From 8664ac887acc5763e17a09034e8e7ef59210b485 Mon Sep 17 00:00:00 2001 From: decabeza Date: Fri, 1 Jun 2018 18:01:01 +0200 Subject: [PATCH] Expands proposals content if there no have image --- app/assets/stylesheets/layout.scss | 6 ++++-- app/views/welcome/_feeds.html.erb | 12 ++++++------ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/app/assets/stylesheets/layout.scss b/app/assets/stylesheets/layout.scss index 1ada8d1d8..3a0b73864 100644 --- a/app/assets/stylesheets/layout.scss +++ b/app/assets/stylesheets/layout.scss @@ -2606,6 +2606,10 @@ table { margin-top: rem-calc(-48); } + .card { + border: 0; + } + h3 { &.title { @@ -2629,12 +2633,10 @@ table { } .feed-image { - background: #fafafa; display: inline-block; height: rem-calc(120); margin: $line-height / 2 0; overflow: hidden; - width: rem-calc(120); img { margin-left: rem-calc(-15); diff --git a/app/views/welcome/_feeds.html.erb b/app/views/welcome/_feeds.html.erb index a71a7dbb1..3a898d835 100644 --- a/app/views/welcome/_feeds.html.erb +++ b/app/views/welcome/_feeds.html.erb @@ -8,15 +8,15 @@ <% feed.items.each do |item| %>
-
-
- <% if feature?(:allow_images) && item.image.present? %> + <% if feature?(:allow_images) && item.image.present? %> +
+
<%= image_tag item.image_url(:thumb), alt: item.image.title.unicode_normalize %> - <% end %> +
-
-
+ <% end %> +
<%= link_to item.title, url_for(item) %>

<%= item.summary %>