Fix responsive issue

This commit is contained in:
Pierre HUBERT 2018-07-20 09:23:32 +02:00
parent fa24c2d090
commit ede515f7a2
2 changed files with 8 additions and 4 deletions

View File

@ -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;

View File

@ -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);
}