Expands proposals content if there no have image
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user