Skip to content

Commit

Permalink
fix: improve code for align dropdown and reduce vertical spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
rsdeus committed Jan 27, 2025
1 parent f7b83a9 commit 3250052
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion decidim-budgets/app/packs/stylesheets/budgets.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
}
}

&__projects {
&__projects__container {
@apply -mt-12 sm:mt-0;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<%= order_selector available_orders, i18n_scope: "decidim.budgets.projects.orders", class_css: "items-start pl-[18px]" %>
<%= order_selector available_orders, i18n_scope: "decidim.budgets.projects.orders", css_class: "items-start pl-[18px]" %>
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
</section>
<% end %>

<section id="projects" class="layout-main__section layout-main__heading budget__projects">
<section id="projects" class="layout-main__section layout-main__heading budget__projects__container">
<%= render partial: "projects" %>
</section>
<% else %>
Expand Down
2 changes: 1 addition & 1 deletion decidim-core/app/helpers/decidim/orders_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def order_selector(orders, options = {})
render partial: "decidim/shared/orders", locals: {
orders:,
i18n_scope: options[:i18n_scope],
class_css: options[:class_css]
css_class: options[:css_class]
}
end

Expand Down
2 changes: 1 addition & 1 deletion decidim-core/app/views/decidim/shared/_orders.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<%= icon "arrow-up-s-line" %>
<span><%= t("#{i18n_scope}.label") %></span>
</button>
<div id="dropdown-menu-order" class="order-by <%= class_css %>">
<div id="dropdown-menu-order" class="order-by <%= css_class %>">
<% orders.each do |order_name| %>
<%= order_link order_name,
i18n_scope:,
Expand Down

0 comments on commit 3250052

Please sign in to comment.