From 24e7916c6897bbb38e057cdf1a102286006be964 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Wed, 5 Feb 2020 20:54:37 +0100 Subject: Add ListOverflow component to prevent sub-menu overflow --- client/src/app/shared/video/modals/video-blacklist.component.ts | 2 +- client/src/app/shared/video/modals/video-download.component.ts | 2 +- client/src/app/shared/video/modals/video-report.component.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'client/src/app/shared/video') diff --git a/client/src/app/shared/video/modals/video-blacklist.component.ts b/client/src/app/shared/video/modals/video-blacklist.component.ts index bdd9c7b99..6ef9c250b 100644 --- a/client/src/app/shared/video/modals/video-blacklist.component.ts +++ b/client/src/app/shared/video/modals/video-blacklist.component.ts @@ -46,7 +46,7 @@ export class VideoBlacklistComponent extends FormReactive implements OnInit { } show () { - this.openedModal = this.modalService.open(this.modal, { keyboard: false }) + this.openedModal = this.modalService.open(this.modal, { centered: true, keyboard: false }) } hide () { diff --git a/client/src/app/shared/video/modals/video-download.component.ts b/client/src/app/shared/video/modals/video-download.component.ts index c1ceca263..6909c4279 100644 --- a/client/src/app/shared/video/modals/video-download.component.ts +++ b/client/src/app/shared/video/modals/video-download.component.ts @@ -48,7 +48,7 @@ export class VideoDownloadComponent { this.video = video this.videoCaptions = videoCaptions && videoCaptions.length ? videoCaptions : undefined - this.activeModal = this.modalService.open(this.modal) + this.activeModal = this.modalService.open(this.modal, { centered: true }) this.resolutionId = this.getVideoFiles()[0].resolution.id if (this.videoCaptions) this.subtitleLanguageId = this.videoCaptions[0].language.id diff --git a/client/src/app/shared/video/modals/video-report.component.ts b/client/src/app/shared/video/modals/video-report.component.ts index ee991fade..988fa03d4 100644 --- a/client/src/app/shared/video/modals/video-report.component.ts +++ b/client/src/app/shared/video/modals/video-report.component.ts @@ -53,7 +53,7 @@ export class VideoReportComponent extends FormReactive implements OnInit { } show () { - this.openedModal = this.modalService.open(this.modal, { keyboard: false }) + this.openedModal = this.modalService.open(this.modal, { centered: true, keyboard: false }) } hide () { -- cgit v1.2.3