Fix responsive with modale and menu displayed
This commit is contained in:
parent
1f788f2044
commit
dd77894171
|
@ -1,5 +1,5 @@
|
|||
import { Component, OnInit } from '@angular/core'
|
||||
import { NavigationEnd, Router } from '@angular/router'
|
||||
import { GuardsCheckStart, NavigationEnd, Router } from '@angular/router'
|
||||
import { AuthService, ServerService } from '@app/core'
|
||||
import { isInMobileView } from '@app/shared/misc/utils'
|
||||
|
||||
|
@ -57,7 +57,7 @@ export class AppComponent implements OnInit {
|
|||
this.router.events.subscribe(
|
||||
e => {
|
||||
// User clicked on a link in the menu, change the page
|
||||
if (e instanceof NavigationEnd && isInMobileView()) {
|
||||
if (e instanceof GuardsCheckStart && isInMobileView()) {
|
||||
this.isMenuDisplayed = false
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,6 +37,10 @@
|
|||
|
||||
margin-right: 25px;
|
||||
|
||||
@media screen and (max-width: 800px) {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.icon.icon-upload {
|
||||
@include icon(22px);
|
||||
|
||||
|
|
|
@ -367,6 +367,10 @@ table {
|
|||
margin-left: 50px;
|
||||
margin-right: 50px;
|
||||
}
|
||||
|
||||
.sub-menu {
|
||||
padding-left: 50px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -389,7 +393,7 @@ table {
|
|||
}
|
||||
|
||||
.sub-menu {
|
||||
padding-left: 10px;
|
||||
padding-left: 15px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue