From ede515f7a2f3cfcb67328b2304179b2fa0e24b0c Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 20 Jul 2018 09:23:32 +0200 Subject: [PATCH] Fix responsive issue --- assets/css/components/menuBar.css | 6 ++++++ assets/js/components/menuBar/common.js | 6 ++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/assets/css/components/menuBar.css b/assets/css/components/menuBar.css index c345b098..bf8094b9 100644 --- a/assets/css/components/menuBar.css +++ b/assets/css/components/menuBar.css @@ -20,6 +20,12 @@ header .dropdown .fa-gear { vertical-align: middle; } +@media (max-width: 360px) { + .main-header[forActiveUser="true"] .navbar-brand { + display: none; + } +} + @media (max-width: 767px) { .skin-blue .main-header .navbar .dropdown-user-menu-action .dropdown-menu li a { color: #333 !important; diff --git a/assets/js/components/menuBar/common.js b/assets/js/components/menuBar/common.js index 9669db24..d7ffb238 100644 --- a/assets/js/components/menuBar/common.js +++ b/assets/js/components/menuBar/common.js @@ -91,14 +91,12 @@ ComunicWeb.components.menuBar.common = { var navbarCollapsIcon = createElem("i", navbarCollapsedButton); navbarCollapsIcon.className = "fa fa-bars"; - //Now we need to know if user is logged in or not - var userLoggedIn = ComunicWeb.user.userLogin.getUserLoginState(); //Save login information in menubar before continuing - menuContainer.setAttribute("forActiveUser", userLoggedIn); + menuContainer.setAttribute("forActiveUser", signed_in()); //Call specific menu - if(userLoggedIn){ + if(signed_in()){ //Call authenticated menubar ComunicWeb.components.menuBar.authenticated.addElements(containerElem); }