From f5c9efc3d21dcb5cc969b9b2eb97f5bb3e91d68c Mon Sep 17 00:00:00 2001
From: alexisben <alex@noesya.coop>
Date: Mon, 6 May 2024 20:02:26 +0100
Subject: [PATCH] fix project grid

---
 assets/sass/_theme/sections/projects.sass | 17 ++++++++++-------
 assets/sass/_theme/utils/shame.sass       |  1 +
 config.yaml                               |  6 +++---
 3 files changed, 14 insertions(+), 10 deletions(-)

diff --git a/assets/sass/_theme/sections/projects.sass b/assets/sass/_theme/sections/projects.sass
index db6247a5..b8cb5b45 100644
--- a/assets/sass/_theme/sections/projects.sass
+++ b/assets/sass/_theme/sections/projects.sass
@@ -16,9 +16,6 @@
             display: flex
             flex-direction: column
             gap: $spacing-3
-            // Espace sécurité pour le bouton de partage en absolute
-            position: relative
-            padding-bottom: calc(#{$spacing-5} + #{$spacing-2}) 
         .project-infos
             --color-text: #{$project-infos-color-text}
             --color-text-alt: #{$project-infos-color-text-alt}
@@ -29,11 +26,9 @@
                 @include list-reset
                 display: flex
                 gap: $spacing-3
-        // Espace sécurité pour le bouton de partage en absolute
         .dropdown-share
-            position: absolute
-            bottom: 0
-            right: 0
+            .btn
+                margin-top: 0
 
     @include media-breakpoint-up(sm)
         .hero
@@ -54,3 +49,11 @@
                 width: columns(4)
             figure
                 width: columns(6)
+            .hero-text
+                // Safe space for dropdown share button wich is in a absolute position
+                position: relative
+                padding-bottom: calc(#{$spacing-5} + #{$spacing-2}) 
+            .dropdown-share
+                position: absolute
+                bottom: 0
+                right: 0
diff --git a/assets/sass/_theme/utils/shame.sass b/assets/sass/_theme/utils/shame.sass
index 0c6f5918..79a2670c 100644
--- a/assets/sass/_theme/utils/shame.sass
+++ b/assets/sass/_theme/utils/shame.sass
@@ -29,6 +29,7 @@
         img
             display: block
             object-fit: cover
+            max-width: max-content
             @if $aspect-ratio
                 aspect-ratio: $aspect-ratio
     p + time
diff --git a/config.yaml b/config.yaml
index 519f10da..0b53a374 100644
--- a/config.yaml
+++ b/config.yaml
@@ -106,7 +106,7 @@ params:
         hide_category: false
         hide_author: false
         hide_date: false
-    # share_links: # Optionnel
+    # share_links: # Optional
     #   enabled: true
     #   facebook: true
     #   twitter: true
@@ -123,7 +123,7 @@ params:
       show_year: false
       truncate_description: 200 # Set to 0 to disable truncate
       layout: list # grid | list
-    # share_links: # Optionnel
+    # share_links: # Optional
     #   enabled: true
     #   facebook: true
     #   twitter: true
@@ -134,7 +134,7 @@ params:
   programs:
     related_posts:
       quantity: 4
-    # share_links: # Optionnel
+    # share_links: # Optional
     #   enabled: true
     #   facebook: true
     #   twitter: true
-- 
GitLab