[footer] polish breakpoints in /services/*
This commit is contained in:
@@ -72,15 +72,18 @@ export class MenuComponent implements OnInit {
|
||||
|
||||
@HostListener('window:click', ['$event'])
|
||||
onClick(event) {
|
||||
const isServicesPageOnMobile = this.isServicesPage && this.isSmallScreen();
|
||||
const cssClasses = event.target.className;
|
||||
|
||||
if (!cssClasses.indexOf) { // Click on chart or non html thingy, close the menu
|
||||
this.navOpen = false;
|
||||
if (!this.isServicesPage || isServicesPageOnMobile) {
|
||||
this.navOpen = false;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
const isHamburger = cssClasses.indexOf('profile_image') !== -1;
|
||||
const isMenu = cssClasses.indexOf('menu-click') !== -1;
|
||||
const isServicesPageOnMobile = this.isServicesPage && this.isSmallScreen();
|
||||
if (!isHamburger && !isMenu && (!this.isServicesPage || isServicesPageOnMobile)) {
|
||||
this.navOpen = false;
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user