From 35d1415e00adfc241afa86668e3bcb7155b19cdf Mon Sep 17 00:00:00 2001 From: Elvia Benedith Date: Thu, 14 Dec 2023 15:08:21 +0100 Subject: [PATCH] adjust image size for canodrom template --- .../newsletter_agenda/agenda_events/themes/canodrom.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/cells/decidim/newsletter_agenda/agenda_events/themes/canodrom.erb b/app/cells/decidim/newsletter_agenda/agenda_events/themes/canodrom.erb index de29e8e..379339d 100644 --- a/app/cells/decidim/newsletter_agenda/agenda_events/themes/canodrom.erb +++ b/app/cells/decidim/newsletter_agenda/agenda_events/themes/canodrom.erb @@ -222,7 +222,7 @@ @@ -260,7 +260,7 @@
<% if has_image?("body_box_image_#{num}") %> <%= link_to link_for("body_box_link_url_#{num}") do %> - <%= image_tag(image_url("body_box_image_#{num}")) %> + <%= image_tag(image_url("body_box_image_#{num}", resize_to_fill: [238, 134]), width: "238", height: "134", style: "width:100%; max-width:100%; display:block; margin:0 auto;") %> <% end %> <% end %>
@@ -305,7 +305,7 @@ <% (1..3).each do |num| %>
- <%= image_tag image_url(:main_image, resize_to_fit: [653, 436]) %> + <%= image_tag image_url(:main_image, resize_to_fit: [653, 436]), width: "653", height: "436" %>