From 15d11820ef7a3b063f2f706d9bfce7e51c9ea514 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Kilchenmann?= Date: Wed, 13 Jan 2021 09:09:05 +0100 Subject: [PATCH] fix(dialog): Diaolog box height issue fixed (#358) --- src/app/main/header/header.component.ts | 2 ++ src/app/project/board/board.component.ts | 1 + src/app/project/collaboration/add-user/add-user.component.ts | 1 + src/app/project/list/list.component.ts | 1 + src/app/project/ontology/ontology.component.ts | 2 ++ .../system/projects/projects-list/projects-list.component.ts | 1 + src/app/system/projects/projects.component.ts | 1 + src/app/system/users/users-list/users-list.component.ts | 1 + src/app/user/account/account.component.ts | 1 + src/app/user/profile/profile.component.ts | 1 + 10 files changed, 12 insertions(+) diff --git a/src/app/main/header/header.component.ts b/src/app/main/header/header.component.ts index a8c3eced13..cb31a9056b 100644 --- a/src/app/main/header/header.component.ts +++ b/src/app/main/header/header.component.ts @@ -124,6 +124,7 @@ export class HeaderComponent implements OnInit, OnDestroy{ openDialog(mode: string, name?: string, iri?: string): void { const dialogConfig: MatDialogConfig = { width: '840px', + maxHeight: '80vh', position: { top: '112px' }, @@ -145,6 +146,7 @@ export class HeaderComponent implements OnInit, OnDestroy{ openNewResourceForm(mode: string, name?: string): void { const dialogConfig: MatDialogConfig = { width: '840px', + maxHeight: '80vh', position: { top: '112px' }, diff --git a/src/app/project/board/board.component.ts b/src/app/project/board/board.component.ts index 6ba9c512e5..6d37db67f5 100644 --- a/src/app/project/board/board.component.ts +++ b/src/app/project/board/board.component.ts @@ -301,6 +301,7 @@ export class BoardComponent implements OnInit { openDialog(mode: string, name: string, id?: string): void { const dialogConfig: MatDialogConfig = { width: '560px', + maxHeight: '80vh', position: { top: '112px' }, diff --git a/src/app/project/collaboration/add-user/add-user.component.ts b/src/app/project/collaboration/add-user/add-user.component.ts index 1ddc0e5d10..a6127f42a7 100644 --- a/src/app/project/collaboration/add-user/add-user.component.ts +++ b/src/app/project/collaboration/add-user/add-user.component.ts @@ -351,6 +351,7 @@ export class AddUserComponent implements OnInit { openDialog(mode: string): void { const dialogConfig: MatDialogConfig = { width: '560px', + maxHeight: '80vh', position: { top: '112px' }, diff --git a/src/app/project/list/list.component.ts b/src/app/project/list/list.component.ts index 4b0cf53375..6c1d438727 100644 --- a/src/app/project/list/list.component.ts +++ b/src/app/project/list/list.component.ts @@ -204,6 +204,7 @@ export class ListComponent implements OnInit { openDialog(mode: string, name: string, iri?: string): void { const dialogConfig: MatDialogConfig = { width: '640px', + maxHeight: '80vh', position: { top: '112px' }, diff --git a/src/app/project/ontology/ontology.component.ts b/src/app/project/ontology/ontology.component.ts index 7569520920..d9fad80e7f 100644 --- a/src/app/project/ontology/ontology.component.ts +++ b/src/app/project/ontology/ontology.component.ts @@ -275,6 +275,7 @@ export class OntologyComponent implements OnInit { openOntologyForm(mode: 'createOntology' | 'editOntology', iri?: string): void { const dialogConfig: MatDialogConfig = { width: '640px', + maxHeight: '80vh', position: { top: '112px' }, @@ -337,6 +338,7 @@ export class OntologyComponent implements OnInit { delete(id: string, mode: 'Ontology' | 'ResourceClass', title: string) { const dialogConfig: MatDialogConfig = { width: '560px', + maxHeight: '80vh', position: { top: '112px' }, diff --git a/src/app/system/projects/projects-list/projects-list.component.ts b/src/app/system/projects/projects-list/projects-list.component.ts index 2380110d9c..8d3b6dde40 100644 --- a/src/app/system/projects/projects-list/projects-list.component.ts +++ b/src/app/system/projects/projects-list/projects-list.component.ts @@ -143,6 +143,7 @@ export class ProjectsListComponent implements OnInit { openDialog(mode: string, name: string, id?: string): void { const dialogConfig: MatDialogConfig = { width: '560px', + maxHeight: '80vh', position: { top: '112px' }, diff --git a/src/app/system/projects/projects.component.ts b/src/app/system/projects/projects.component.ts index bb9ec42964..c45823fc4d 100644 --- a/src/app/system/projects/projects.component.ts +++ b/src/app/system/projects/projects.component.ts @@ -132,6 +132,7 @@ export class ProjectsComponent implements OnInit { openDialog(mode: string): void { const dialogConfig: MatDialogConfig = { width: '560px', + maxHeight: '80vh', position: { top: '112px' }, diff --git a/src/app/system/users/users-list/users-list.component.ts b/src/app/system/users/users-list/users-list.component.ts index 5d4dbe97ff..6b58c74bf2 100644 --- a/src/app/system/users/users-list/users-list.component.ts +++ b/src/app/system/users/users-list/users-list.component.ts @@ -328,6 +328,7 @@ export class UsersListComponent implements OnInit { openDialog(mode: string, name: string, iri?: string): void { const dialogConfig: MatDialogConfig = { width: '560px', + maxHeight: '80vh', position: { top: '112px' }, diff --git a/src/app/user/account/account.component.ts b/src/app/user/account/account.component.ts index 431bb825d7..e1bd84fa38 100644 --- a/src/app/user/account/account.component.ts +++ b/src/app/user/account/account.component.ts @@ -63,6 +63,7 @@ export class AccountComponent implements OnInit { openDialog(mode: string, name: string, id?: string): void { const dialogConfig: MatDialogConfig = { width: '560px', + maxHeight: '80vh', position: { top: '112px' }, diff --git a/src/app/user/profile/profile.component.ts b/src/app/user/profile/profile.component.ts index 975554656b..e4a13196fc 100644 --- a/src/app/user/profile/profile.component.ts +++ b/src/app/user/profile/profile.component.ts @@ -80,6 +80,7 @@ export class ProfileComponent implements OnInit { openDialog(mode: string, name: string): void { const dialogConfig: MatDialogConfig = { width: '560px', + maxHeight: '80vh', position: { top: '112px' },