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/modal/instance-config-warning-modal.component.ts | 2 +- client/src/app/modal/welcome-modal.component.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'client/src/app/modal') diff --git a/client/src/app/modal/instance-config-warning-modal.component.ts b/client/src/app/modal/instance-config-warning-modal.component.ts index 742a7dd41..5e1433548 100644 --- a/client/src/app/modal/instance-config-warning-modal.component.ts +++ b/client/src/app/modal/instance-config-warning-modal.component.ts @@ -24,7 +24,7 @@ export class InstanceConfigWarningModalComponent { show (about: About) { this.about = about - const ref = this.modalService.open(this.modal) + const ref = this.modalService.open(this.modal, { centered: true }) ref.result.finally(() => { if (this.stopDisplayModal === true) this.doNotOpenAgain() diff --git a/client/src/app/modal/welcome-modal.component.ts b/client/src/app/modal/welcome-modal.component.ts index 19a147b85..e022776e3 100644 --- a/client/src/app/modal/welcome-modal.component.ts +++ b/client/src/app/modal/welcome-modal.component.ts @@ -18,7 +18,8 @@ export class WelcomeModalComponent { ) { } show () { - this.modalService.open(this.modal,{ + this.modalService.open(this.modal, { + centered: true, backdrop: 'static', keyboard: false, size: 'lg' -- cgit v1.2.3