From 20efa81a290e398a3874b2cf678f2ac2bd4ad911 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Mon, 5 Apr 2021 16:03:35 +0200 Subject: [PATCH] Fix conversations width --- assets/css/pages/groups/pages/conversation.css | 14 ++++++++++++++ assets/js/pages/groups/pages/conversation.js | 11 ++++++++++- system/config/dev.config.php | 1 + 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 assets/css/pages/groups/pages/conversation.css diff --git a/assets/css/pages/groups/pages/conversation.css b/assets/css/pages/groups/pages/conversation.css new file mode 100644 index 00000000..81a83074 --- /dev/null +++ b/assets/css/pages/groups/pages/conversation.css @@ -0,0 +1,14 @@ +/** + * Group conversation + * + * @author Pierre Hubert + */ + +.group-page-conversation { + margin: auto; + float: none; +} + +.group-page-conversation .box { + max-width: unset; +} \ No newline at end of file diff --git a/assets/js/pages/groups/pages/conversation.js b/assets/js/pages/groups/pages/conversation.js index 2a3cb9fd..b5642e2e 100644 --- a/assets/js/pages/groups/pages/conversation.js +++ b/assets/js/pages/groups/pages/conversation.js @@ -13,7 +13,16 @@ const GroupConversationPage = { * @param {HTMLElement} target Target page */ show: function(conv, target) { - ConversationPageConvPart.open(conv.id, target) + + const convTarget = createElem2({ + appendTo: target, + type: "div", + class: "row", + innerHTML: "
" + }).children[0] + + + ConversationPageConvPart.open(conv.id, convTarget) } } \ No newline at end of file diff --git a/system/config/dev.config.php b/system/config/dev.config.php index cfe28c0f..1b53527b 100644 --- a/system/config/dev.config.php +++ b/system/config/dev.config.php @@ -265,6 +265,7 @@ class Dev { //Groups page //Groups pages "css/pages/groups/pages/main.css", + "css/pages/groups/pages/conversation.css", "css/pages/groups/pages/create.css", "css/pages/groups/pages/group.css", "css/pages/groups/pages/settings.css",