From: Eric Brehault Date: Fri, 29 Jun 2018 16:21:26 +0000 (+0200) Subject: remove scroll to top, and keep menu fixed on small devices X-Git-Tag: v1.0.0-beta.10.pre.1~100 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b5c4bfd6acfa6b3430b81e3915658d0129b2cd5f;p=oweals%2Fpeertube.git remove scroll to top, and keep menu fixed on small devices --- 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; }