From 58c73b3108c7deecc6f7520f3a387c46766c0eb0 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Tue, 14 Apr 2020 11:59:34 +0200 Subject: [PATCH] Fix layout issue --- assets/css/common/global.css | 4 ---- assets/css/pages/conversations/main.css | 6 ++++++ assets/js/pages/conversations/conversation.js | 3 +++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/assets/css/common/global.css b/assets/css/common/global.css index e48118a8..58c5b32e 100644 --- a/assets/css/common/global.css +++ b/assets/css/common/global.css @@ -37,10 +37,6 @@ a, .cursor-pointer { padding-bottom: 0px; } -#pageTarget { - display: flex; - flex-direction: column; -} /** * Adapt menu bar to small screens diff --git a/assets/css/pages/conversations/main.css b/assets/css/pages/conversations/main.css index 18684878..b3698933 100644 --- a/assets/css/pages/conversations/main.css +++ b/assets/css/pages/conversations/main.css @@ -4,6 +4,12 @@ * @author Pierre HUBERT */ + +.conversations-page #pageTarget { + display: flex; + flex-direction: column; +} + .conversations-page-container { max-width: 1000px; margin: auto; diff --git a/assets/js/pages/conversations/conversation.js b/assets/js/pages/conversations/conversation.js index 489c9ddd..a6d6bdff 100644 --- a/assets/js/pages/conversations/conversation.js +++ b/assets/js/pages/conversations/conversation.js @@ -20,6 +20,9 @@ const ConversationPageConvPart = { */ open: async function(convID, target){ + + document.body.classList.add("conversations-page"); + //Reset conversation information this._conv_info = {