Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

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

Eric Brehaultb5c4bfd6acfa
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts
index 494cd9ea61..fc4d6c6a27 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 96602dc38d..65711a225f 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;
}