From 76ff8565e486e99824f08694a63f0c4928ee5571 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 5 Feb 2021 10:14:25 +0100 Subject: [PATCH] Fix posts width on user page with large screens --- assets/css/pages/userPage/main.css | 4 ++++ assets/js/pages/userPage/main.js | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/assets/css/pages/userPage/main.css b/assets/css/pages/userPage/main.css index b4f90fb4..963d5bea 100644 --- a/assets/css/pages/userPage/main.css +++ b/assets/css/pages/userPage/main.css @@ -7,4 +7,8 @@ .page-container { max-width: 1500px; margin: auto; +} + +.user-page-right-column { + max-width: 800px; } \ No newline at end of file diff --git a/assets/js/pages/userPage/main.js b/assets/js/pages/userPage/main.js index 6645bb90..a894d47e 100644 --- a/assets/js/pages/userPage/main.js +++ b/assets/js/pages/userPage/main.js @@ -148,10 +148,10 @@ ComunicWeb.pages.userPage.main = { ComunicWeb.pages.userPage.profileInfos.display(infos, leftColumn); //Create right column - var rightColumn = createElem2({ + const rightColumn = createElem2({ appendTo: row, type: "div", - class: "col-md-8" + class: "col-md-8 user-page-right-column" }); //Display post creation form if the user is allowed to do so