From c71e9a10419fb63186556aec8a6e76b1b1a0a522 Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Wed, 25 Oct 2023 11:03:40 -0500 Subject: [PATCH] Variant: Use resize_to_fit, to preserve aspect ratio. --- app/views/catalog/_index_mapview_default.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/catalog/_index_mapview_default.html.erb b/app/views/catalog/_index_mapview_default.html.erb index aaf83576d..f1ebddcaf 100644 --- a/app/views/catalog/_index_mapview_default.html.erb +++ b/app/views/catalog/_index_mapview_default.html.erb @@ -13,7 +13,7 @@
<%- if document.sidecar.image.attached? %> <%- if document.sidecar.image.variable? %> - <%= image_tag document.sidecar.image.variant(resize_to_fill: [200, nil]), {class: 'mr-3', alt: document.to_semantic_values[:title]} %> + <%= image_tag document.sidecar.image.variant(resize_to_fit: [200, nil]), {class: 'mr-3', alt: document.to_semantic_values[:title]} %> <%- else %> <%= image_tag document.sidecar.image, {class: 'mr-3'} %> <%- end %>