Skip to content

Commit

Permalink
filter order & small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
microstudi committed Sep 12, 2023
1 parent 85c833d commit dd0225d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/cells/decidim/content_blocks/partner_logos/show.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="wrapper-home">
<div class="row column text-center">
<h2 class="heading3"><%= I18n.t(".decidim.content_blocks.partner_logos.title1") %></h2>
<div class="row small-up-1 medium-up-<%= [first_row.size, 3].min %> home-bullets">
<div class="row small-up-1 medium-up-<%= [first_row.size, 3].min %> home-bullets full-height">
<% first_row.each do |image_path| %>
<div class="column">
<%= image_tag image_path %>
Expand Down
2 changes: 1 addition & 1 deletion app/cells/decidim/content_blocks/partner_logos_cell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def partner_images(row)
dir = "partners#{row}/"
image_directory = Rails.public_path.join(dir.to_s)
Dir["#{image_directory}/*.png"].map do |file_path|
"/#{dir}/#{File.basename(file_path)}"
"/#{dir}#{File.basename(file_path)}"
end
end

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- insert_after "erb[loud]:contains('decidim/conferences/order_by_conferences')" -->
<!-- insert_after "erb[loud]:contains('participatory_space_wrapper do')" -->

<%= render partial: "capitalitat/conferences_buttons" %>
<section id="conferences-filter" class="row collapse">
<%= render partial: "capitalitat/conferences_buttons" %>
</section>
9 changes: 9 additions & 0 deletions app/packs/stylesheets/partials/_html_block.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,13 @@
}
}
}
.full-height {
.column {
padding-right: 2rem;
padding-left: 2rem;
img {
height: auto;
}
}
}
}

0 comments on commit dd0225d

Please sign in to comment.