diff --git a/app/assets/stylesheets/participation.scss b/app/assets/stylesheets/participation.scss index 8a88e3a86..519cf6859 100644 --- a/app/assets/stylesheets/participation.scss +++ b/app/assets/stylesheets/participation.scss @@ -628,10 +628,16 @@ } &.past-budgets { + display: flex; + flex-wrap: wrap; min-height: 0; - .button ~ .button { - margin-left: $line-height / 2; + > :not(:first-child) { + margin-left: auto; + } + + .button { + margin-left: $line-height; } } } diff --git a/app/views/budgets/_finished.html.erb b/app/views/budgets/_finished.html.erb index f0d4c621c..f99db6525 100644 --- a/app/views/budgets/_finished.html.erb +++ b/app/views/budgets/_finished.html.erb @@ -1,31 +1,19 @@
-
+

<%= t("budgets.index.finished_budgets") %>

<% budgets.each do |budget| %>
-
-
-
-

<%= budget.name %>

-
-
+

<%= budget.name %>

-
-
- <% if can?(:read_results, budget) %> - <%= link_to t("budgets.index.see_results"), - budget_results_path(budget), - class: "button" %> - <% end %> +
+ <% if can?(:read_results, budget) %> + <%= link_to t("budgets.index.see_results"), budget_results_path(budget), class: "button" %> + <% end %> - <%= link_to t("budgets.index.milestones"), - budget_executions_path(budget), - class: "button" %> -
-
+ <%= link_to t("budgets.index.milestones"), budget_executions_path(budget), class: "button" %>