diff options
author | Eric Brehault <ebrehault@gmail.com> | 2018-06-29 18:21:26 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-30 09:58:07 +0200 |
commit | b5c4bfd6acfa6b3430b81e3915658d0129b2cd5f (patch) | |
tree | 4cb9179126e49f1a235036de249b24bf057d0367 /client/src | |
parent | 6e1bd7056ca50e5ad4e0e4c50d2487489add079e (diff) | |
download | PeerTube-b5c4bfd6acfa6b3430b81e3915658d0129b2cd5f.tar.gz PeerTube-b5c4bfd6acfa6b3430b81e3915658d0129b2cd5f.tar.zst PeerTube-b5c4bfd6acfa6b3430b81e3915658d0129b2cd5f.zip |
remove scroll to top, and keep menu fixed on small devices
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/app/app.component.ts | 1 | ||||
-rw-r--r-- | client/src/sass/application.scss | 2 |
2 files changed, 0 insertions, 3 deletions
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 { | |||
115 | } | 115 | } |
116 | 116 | ||
117 | toggleMenu () { | 117 | toggleMenu () { |
118 | window.scrollTo(0, 0) | ||
119 | this.isMenuDisplayed = !this.isMenuDisplayed | 118 | this.isMenuDisplayed = !this.isMenuDisplayed |
120 | } | 119 | } |
121 | } | 120 | } |
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 { | |||
286 | } | 286 | } |
287 | } | 287 | } |
288 | 288 | ||
289 | // On small screen, menu is absolute | ||
290 | @media screen and (max-width: 600px) { | 289 | @media screen and (max-width: 600px) { |
291 | .menu-wrapper { | 290 | .menu-wrapper { |
292 | width: 100% !important; | 291 | width: 100% !important; |
293 | position: absolute !important; | ||
294 | z-index: 10000; | 292 | z-index: 10000; |
295 | } | 293 | } |
296 | 294 | ||