From adbc57c1ccbccd1c7f1666d55cf40517f041d3b1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Valenta?= <tomas@imaniti.org>
Date: Sun, 26 May 2024 12:46:49 +0200
Subject: [PATCH] update center header

---
 .../header/district/center_header.html          | 17 +++++++++++++----
 .../header/elections/simple_header.html         |  2 +-
 2 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/majak_uistyleguide/templates/patterns/organisms/header/district/center_header.html b/majak_uistyleguide/templates/patterns/organisms/header/district/center_header.html
index 7a7b062..4f245dd 100644
--- a/majak_uistyleguide/templates/patterns/organisms/header/district/center_header.html
+++ b/majak_uistyleguide/templates/patterns/organisms/header/district/center_header.html
@@ -24,7 +24,13 @@
     id="address-popup"
     data-is-open="false"
   >
-    <div class="container--wide flex justify-between">
+    <div
+      class="
+        container--wide flex flex-col gap-4
+
+        lg:flex-row lg:justify-between
+      "
+    >
       <div
         class="prose prose-black leading-6"
       >
@@ -43,9 +49,12 @@
         </address>
       </div>
 
-      <img
-        src="https://picsum.photos/536/354"
-      >
+      <div class="w-full lg:w-[35rem]">
+        <img
+          class="w-full"
+          src="https://picsum.photos/536/354"
+        >
+      </div>
     </div>
   </div>
 
diff --git a/majak_uistyleguide/templates/patterns/organisms/header/elections/simple_header.html b/majak_uistyleguide/templates/patterns/organisms/header/elections/simple_header.html
index 78970ed..455f20f 100644
--- a/majak_uistyleguide/templates/patterns/organisms/header/elections/simple_header.html
+++ b/majak_uistyleguide/templates/patterns/organisms/header/elections/simple_header.html
@@ -14,7 +14,7 @@
   {% if is_short %}head-short{% endif %}
 
   {% if description %}
-    head-8xl
+    {% if title|length <= 100 %}head-8xl{% else %}head-7xl{% endif %}
   {% else %}
     head-14xl
   {% endif %}
-- 
GitLab