mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 09:49:20 +02:00
Fix responsive
This commit is contained in:
parent
6c6740aded
commit
4a58c08c5b
20 changed files with 144 additions and 206 deletions
|
@ -6,6 +6,7 @@ import { logger } from '@root-helpers/logger'
|
|||
import { filter, Subscription } from 'rxjs'
|
||||
import { PluginSelectorDirective } from '../plugins/plugin-selector.directive'
|
||||
import { ListOverflowComponent } from './list-overflow.component'
|
||||
import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
|
||||
|
||||
export type HorizontalMenuEntry = {
|
||||
label: string
|
||||
|
@ -51,7 +52,11 @@ export class HorizontalMenuComponent implements OnInit, OnChanges, OnDestroy {
|
|||
|
||||
private routerSub: Subscription
|
||||
|
||||
constructor (private router: Router, private route: ActivatedRoute) {
|
||||
constructor (
|
||||
private router: Router,
|
||||
private route: ActivatedRoute,
|
||||
private modal: NgbModal
|
||||
) {
|
||||
|
||||
}
|
||||
|
||||
|
@ -69,6 +74,12 @@ export class HorizontalMenuComponent implements OnInit, OnChanges, OnDestroy {
|
|||
if (this.routerSub) this.routerSub.unsubscribe()
|
||||
}
|
||||
|
||||
onLinkClick (modal: boolean) {
|
||||
if (modal) {
|
||||
this.modal.dismissAll()
|
||||
}
|
||||
}
|
||||
|
||||
private buildChildren () {
|
||||
this.children = []
|
||||
this.activeParent = undefined
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue