Expands proposals content if there no have image

This commit is contained in:
decabeza
2018-06-01 18:01:01 +02:00
parent ef57396f9d
commit 8664ac887a
2 changed files with 10 additions and 8 deletions

View File

@@ -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);

View File

@@ -8,15 +8,15 @@
<% feed.items.each do |item| %>
<div class="<%= item.class.to_s.parameterize('_') %> row">
<div class="small-12 large-3 column">
<div class="feed-image">
<% if feature?(:allow_images) && item.image.present? %>
<% if feature?(:allow_images) && item.image.present? %>
<div class="small-12 large-3 column">
<div class="feed-image">
<%= image_tag item.image_url(:thumb),
alt: item.image.title.unicode_normalize %>
<% end %>
</div>
</div>
</div>
<div class="feed-description small-12 large-9 column">
<% end %>
<div class="feed-description small-12 column <%= 'large-9' if feature?(:allow_images) && item.image.present? %>">
<strong><%= link_to item.title, url_for(item) %></strong><br>
<p><%= item.summary %></p>
</div>