[footer] polish breakpoints in /services/*

This commit is contained in:
nymkappa
2023-08-23 16:17:07 +02:00
parent a7b2c39f51
commit c8100712e8
4 changed files with 69 additions and 19 deletions

View File

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