remove scroll to top, and keep menu fixed on small devices
authorEric Brehault <ebrehault@gmail.com>
Fri, 29 Jun 2018 16:21:26 +0000 (18:21 +0200)
committerChocobozzz <me@florianbigard.com>
Sat, 30 Jun 2018 07:58:07 +0000 (09:58 +0200)
client/src/app/app.component.ts
client/src/sass/application.scss

index 494cd9ea618d9c79f36c767f8933efe8ad25f7b7..fc4d6c6a27c4d5e92e29337d4b81ee85f5dab7f3 100644 (file)
@@ -115,7 +115,6 @@ export class AppComponent implements OnInit {
   }
 
   toggleMenu () {
-    window.scrollTo(0, 0)
     this.isMenuDisplayed = !this.isMenuDisplayed
   }
 }
index 96602dc38de98bb65d5c293e36a3b14d8e7e2c70..65711a225fbb4f3bbfd97f5a2050329d2647d271 100644 (file)
@@ -286,11 +286,9 @@ table {
   }
 }
 
-// On small screen, menu is absolute
 @media screen and (max-width: 600px) {
   .menu-wrapper {
     width: 100% !important;
-    position: absolute !important;
     z-index: 10000;
   }