remove scroll to top, and keep menu fixed on small devices

pull/761/head
Eric Brehault 2018-06-29 18:21:26 +02:00 committed by Chocobozzz
parent 6e1bd7056c
commit b5c4bfd6ac
2 changed files with 0 additions and 3 deletions

View File

@ -115,7 +115,6 @@ export class AppComponent implements OnInit {
} }
toggleMenu () { toggleMenu () {
window.scrollTo(0, 0)
this.isMenuDisplayed = !this.isMenuDisplayed this.isMenuDisplayed = !this.isMenuDisplayed
} }
} }

View File

@ -286,11 +286,9 @@ table {
} }
} }
// On small screen, menu is absolute
@media screen and (max-width: 600px) { @media screen and (max-width: 600px) {
.menu-wrapper { .menu-wrapper {
width: 100% !important; width: 100% !important;
position: absolute !important;
z-index: 10000; z-index: 10000;
} }