From 683df337c0e0b2a2309454dc8491b5560e4b9752 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Valenta?= <git@imaniti.org>
Date: Wed, 24 Jan 2024 17:18:36 +0100
Subject: [PATCH] fix image scaling

---
 main/templates/main/main_person_page.html                       | 2 +-
 .../includes/organisms/articles/articles_section.html           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/main/templates/main/main_person_page.html b/main/templates/main/main_person_page.html
index ae700187..cea533c8 100644
--- a/main/templates/main/main_person_page.html
+++ b/main/templates/main/main_person_page.html
@@ -97,7 +97,7 @@
             <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 content-stretch gap-8">
               {% for related_article in article_page_list %}
 
-                {% image related_article.image fill-500x500 as article_image %}
+                {% image related_article.image max-500x500 as article_image %}
 
                 {% include 'styleguide2/includes/molecules/boxes/card_box.html' with url=related_article.url image=article_image header=related_article.title content=related_article.perex|shorten_perex description_classes='!bg-grey-180' date=related_article.date %}
               {% endfor %}
diff --git a/shared/templates/styleguide2/includes/organisms/articles/articles_section.html b/shared/templates/styleguide2/includes/organisms/articles/articles_section.html
index 50649d85..9372b979 100644
--- a/shared/templates/styleguide2/includes/organisms/articles/articles_section.html
+++ b/shared/templates/styleguide2/includes/organisms/articles/articles_section.html
@@ -31,7 +31,7 @@
       "
     >
       {% for article in article_data_list %}
-        {% image article.image fill-500x500 as article_image %}
+        {% image article.image max-500x500 as article_image %}
 
         {% include 'styleguide2/includes/molecules/boxes/card_box.html' with url=article.url image=article_image date=article.date header=article.title content=article.perex|shorten_perex %}
       {% endfor %}
-- 
GitLab