From 8af57da32c1ffbc2c8ef4a66252cbfa5f8719f43 Mon Sep 17 00:00:00 2001
From: Olivia206 <olivia.simonet@mmibordeaux.com>
Date: Mon, 20 Mar 2023 11:01:54 +0100
Subject: [PATCH] fixed post picture columns

---
 .../stylesheets/extranet/pages/_posts.sass    | 69 +++++++++++--------
 1 file changed, 39 insertions(+), 30 deletions(-)

diff --git a/app/assets/stylesheets/extranet/pages/_posts.sass b/app/assets/stylesheets/extranet/pages/_posts.sass
index 752f506f0..6780a2eaa 100644
--- a/app/assets/stylesheets/extranet/pages/_posts.sass
+++ b/app/assets/stylesheets/extranet/pages/_posts.sass
@@ -1,31 +1,40 @@
-.posts-show header figure
-    display: inline-block
-    position: relative
-    &.with-credit::after
-        bottom: 0
-        content: '©'
-        padding: 0.5rem
-        padding-right: 0
-        position: absolute
-        right: 0
-        transform: translateY(100%)
-    figcaption
-        display: none
-        font-size: 1rem
-        font-weight: 400
-        left: 0
-        padding: 0.5rem
-        padding-right: 1.5rem
-        position: absolute
-        right: 0
-        text-align: right
-        z-index: 10
-        p
-            margin-bottom: 0
-        a
-            text-decoration: underline
-    &:hover figcaption
-        display: block
-    @include media-breakpoint-down(md)
-        figcaption p 
+.posts-show header
+    .header__additional_data
+    figure
+        display: inline-block
+        position: relative
+        @include media-breakpoint-up(md)
+            padding-left: 2.813rem
+            width: 25%
+        picture img
+            width: 100%
+        &.with-credit::after
+            bottom: 0
+            content: '©'
+            padding: 0.5rem
+            padding-right: 0
+            position: absolute
+            right: 0
+            transform: translateY(100%)
+        figcaption
+            display: none
+            font-size: 1rem
+            font-weight: 400
+            left: 0
+            padding: 0.5rem
+            padding-right: 1.5rem
+            position: absolute
+            right: 0
+            text-align: right
+            z-index: 10
+            @include media-breakpoint-up(md)
+                padding-left: 2.813rem
+            p
+                margin-bottom: 0
+            a
+                text-decoration: underline
+        &:hover figcaption
             display: block
+        @include media-breakpoint-down(md)
+            figcaption p 
+                display: block
-- 
GitLab