import { Component, OnInit } from '@angular/core'
-import { Router } from '@angular/router'
+import { NavigationEnd, Router } from '@angular/router'
import { AuthService, ServerService } from '@app/core'
@Component({
if (window.innerWidth < 600) {
this.isMenuDisplayed = false
}
+
+ this.router.events.subscribe(
+ e => {
+ // User clicked on a link in the menu, change the page
+ if (e instanceof NavigationEnd && window.innerWidth < 600) {
+ this.isMenuDisplayed = false
+ }
+ }
+ )
}
toggleMenu () {
}
}
}
-
-@media screen and (max-width: 800px) {
- menu {
- .logged-in-block {
- padding-left: 10px;
-
- img {
- display: none;
- }
-
- .logged-in-info {
- .logged-in-username {
- font-size: 14px;
- }
-
- .logged-in-email {
- font-size: 11px;
- max-width: 120px;
- }
- }
-
- .logged-in-more {
- margin-right: 5px;
-
- .login-button, .create-account-button {
- font-weight: $font-semibold;
- font-size: 15px;
- height: $button-height;
- line-height: $button-height;
- width: 190px;
- }
- }
- }
-
- .button-block {
- margin: 20px 10px 25px 10px;
-
- .login-button, .create-account-button {
- font-size: 13px;
- }
- }
-
- .panel-block {
- margin-bottom: 30px;
- margin-left: 10px;
-
- a {
- font-size: 14px;
-
- .icon {
- margin-right: 10px;
- }
- }
- }
- }
-}
}
// On small screen, menu is absolute
-@media screen and (max-width: 800px) {
+@media screen and (max-width: 600px) {
.title-menu-left {
- width: 150px !important;
+ width: 100% !important;
position: absolute !important;
z-index: 10000;
}
}
}
}
+
+ bs-dropdown-container {
+ z-index: 10000;
+ }
}