From 00e7ef4b6a236d0fd2c6aa3e994d7620e868ec53 Mon Sep 17 00:00:00 2001 From: Renato Date: Thu, 12 Dec 2024 10:58:44 -0300 Subject: [PATCH 1/3] fix: ux adjustments on proposal's highlighted page --- .../show.erb | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/decidim-proposals/app/cells/decidim/proposals/highlighted_proposals_for_component/show.erb b/decidim-proposals/app/cells/decidim/proposals/highlighted_proposals_for_component/show.erb index acc9af71d1c52..1da90a3d7da24 100644 --- a/decidim-proposals/app/cells/decidim/proposals/highlighted_proposals_for_component/show.erb +++ b/decidim-proposals/app/cells/decidim/proposals/highlighted_proposals_for_component/show.erb @@ -12,16 +12,9 @@
-
- - <%= t("decidim.participatory_spaces.highlighted_proposals.last") %> - - - <% proposals_to_render.each do |p| %> - <%= card_for p, link_whole_card: true, title_tag: :h3, **options.slice(:show_space) %> - <% end %> -
- + + <%= t("decidim.participatory_spaces.highlighted_proposals.last") %> + <% if single_component? %> <%= link_to decidim_proposals.new_proposal_path, class: "button button__sm md:button__lg button__secondary" do %> <%= t("decidim.proposals.actions.new") %> @@ -29,3 +22,10 @@ <% end %> <% end %>
+
+
+ <% proposals_to_render.each do |p| %> + <%= card_for p, link_whole_card: true, title_tag: :h3, **options.slice(:show_space) %> + <% end %> +
+
From 7169a2db19907df070e53091949bce2eb2f4d01b Mon Sep 17 00:00:00 2001 From: Renato Date: Mon, 16 Dec 2024 07:04:26 -0300 Subject: [PATCH 2/3] fix: alignment between label and button --- .../proposals/highlighted_proposals_for_component/show.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decidim-proposals/app/cells/decidim/proposals/highlighted_proposals_for_component/show.erb b/decidim-proposals/app/cells/decidim/proposals/highlighted_proposals_for_component/show.erb index 1da90a3d7da24..26dee88987983 100644 --- a/decidim-proposals/app/cells/decidim/proposals/highlighted_proposals_for_component/show.erb +++ b/decidim-proposals/app/cells/decidim/proposals/highlighted_proposals_for_component/show.erb @@ -11,7 +11,7 @@ <% end %> -
+
<%= t("decidim.participatory_spaces.highlighted_proposals.last") %> From aadec8763195b4fb11d136f4be56e26f72e8bf51 Mon Sep 17 00:00:00 2001 From: Renato Date: Tue, 17 Dec 2024 06:06:02 -0300 Subject: [PATCH 3/3] fix: ux removal of padding --- .../proposals/highlighted_proposals_for_component/show.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decidim-proposals/app/cells/decidim/proposals/highlighted_proposals_for_component/show.erb b/decidim-proposals/app/cells/decidim/proposals/highlighted_proposals_for_component/show.erb index 26dee88987983..f62e484bf15f4 100644 --- a/decidim-proposals/app/cells/decidim/proposals/highlighted_proposals_for_component/show.erb +++ b/decidim-proposals/app/cells/decidim/proposals/highlighted_proposals_for_component/show.erb @@ -11,7 +11,7 @@ <% end %>
-
+
<%= t("decidim.participatory_spaces.highlighted_proposals.last") %>