From fbde4b8acf583b8edef57d5fad6e771a0d57e089 Mon Sep 17 00:00:00 2001
From: Arnaud Levy <contact@arnaudlevy.com>
Date: Tue, 24 Jan 2023 17:26:31 +0100
Subject: [PATCH] Fix #765

---
 .../websites/posts/show.html.erb              | 21 +++++++++----------
 1 file changed, 10 insertions(+), 11 deletions(-)

diff --git a/app/views/admin/communication/websites/posts/show.html.erb b/app/views/admin/communication/websites/posts/show.html.erb
index f21baaa1f..3bb68a4fe 100644
--- a/app/views/admin/communication/websites/posts/show.html.erb
+++ b/app/views/admin/communication/websites/posts/show.html.erb
@@ -2,20 +2,19 @@
 
 <%= render 'admin/communication/websites/sidebar' do %>
   <div class="row">
-    <div class="col-md-8">
+    <div class="col-xl-8">
       <%= render 'admin/application/summary/show', about: @post %>
       <%= render 'admin/communication/blocks/list', about: @post %>
     </div>
-    <div class="col-md-4">
-      <div class="float-end">
-        <% if @post.url %>
-          <%= link_to t('open'),
-                      @post.url,
-                      target: :_blank,
-                      class: 'btn btn-light' %>
-        <% end %>
-      </div>
-      <%= osuny_panel t('metadata') do %>
+    <div class="col-xl-4">
+      <% 
+      action = ''
+      action += link_to t('open'),
+                        @post.url,
+                        target: :_blank,
+                        class: 'btn btn-light btn-xs' if @post.url
+      %>
+      <%= osuny_panel t('metadata'), action: action do %>
         <div class="row pure__row--small">
           <div class="col-6">
             <h3 class="h5"><%= Communication::Website::Post.human_attribute_name('published') %></h3>
-- 
GitLab