mirror of https://github.com/Chocobozzz/PeerTube
remove scroll to top, and keep menu fixed on small devices
parent
6e1bd7056c
commit
b5c4bfd6ac
|
@ -115,7 +115,6 @@ export class AppComponent implements OnInit {
|
|||
}
|
||||
|
||||
toggleMenu () {
|
||||
window.scrollTo(0, 0)
|
||||
this.isMenuDisplayed = !this.isMenuDisplayed
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue