From b5c4bfd6acfa6b3430b81e3915658d0129b2cd5f Mon Sep 17 00:00:00 2001 From: Eric Brehault Date: Fri, 29 Jun 2018 18:21:26 +0200 Subject: remove scroll to top, and keep menu fixed on small devices --- client/src/app/app.component.ts | 1 - client/src/sass/application.scss | 2 -- 2 files changed, 3 deletions(-) (limited to 'client') diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts index 494cd9ea6..fc4d6c6a2 100644 --- a/client/src/app/app.component.ts +++ b/client/src/app/app.component.ts @@ -115,7 +115,6 @@ export class AppComponent implements OnInit { } toggleMenu () { - window.scrollTo(0, 0) this.isMenuDisplayed = !this.isMenuDisplayed } } diff --git a/client/src/sass/application.scss b/client/src/sass/application.scss index 96602dc38..65711a225 100644 --- a/client/src/sass/application.scss +++ b/client/src/sass/application.scss @@ -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; } -- cgit v1.2.3