1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 09:49:20 +02:00

Fix responsive

This commit is contained in:
Chocobozzz 2024-11-26 10:23:08 +01:00
parent 6c6740aded
commit 4a58c08c5b
No known key found for this signature in database
GPG key ID: 583A612D890159BE
20 changed files with 144 additions and 206 deletions

View file

@ -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