From 153aa0d032be5018b348ca10c39334dc6c21da1f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Valenta?= <git@imaniti.org>
Date: Thu, 25 Jan 2024 12:34:15 +0100
Subject: [PATCH] fix sizing

---
 donate/static/donate/assets/css/style.css | 6 ++++--
 shared/image_formats.py                   | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/donate/static/donate/assets/css/style.css b/donate/static/donate/assets/css/style.css
index fc27fe62..77aa8a90 100644
--- a/donate/static/donate/assets/css/style.css
+++ b/donate/static/donate/assets/css/style.css
@@ -1264,8 +1264,10 @@ img.full-width {
   -o-object-fit: contain
 }
 
-.h-max {
-  height: max-content;
+@media screen and (max-width: 991px) {
+  .lg\:h-max {
+    height: max-content;
+  }
 }
 
 /* END TailwindCSS-based image formatting */
diff --git a/shared/image_formats.py b/shared/image_formats.py
index 34620573..0fb58088 100644
--- a/shared/image_formats.py
+++ b/shared/image_formats.py
@@ -4,7 +4,7 @@ register_image_format(
     Format(
         "tailwind_center_800",
         "šablona: Uprostřed (max 800px)",
-        "w-full mx-auto my-6 object-contain h-max",
+        "w-full mx-auto my-6 object-contain h-max lg:h-max",
         "max-800x800",
     )
 )
-- 
GitLab