From f6bf0fb5d360746a65011651f78db7c1ae9732c0 Mon Sep 17 00:00:00 2001 From: sercan Date: Wed, 4 Aug 2021 09:54:35 +0300 Subject: [PATCH] (fuse/confirmation) Fixed: Dialog size cannot be updated using dialogRef's "updateSize" method --- .../services/confirmation/confirmation.service.ts | 3 ++- .../confirmation/dialog/dialog.component.html | 4 ++-- .../confirmation/dialog/dialog.component.ts | 14 ++++++++++++++ 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/@fuse/services/confirmation/confirmation.service.ts b/src/@fuse/services/confirmation/confirmation.service.ts index 10fe2e9a..b22ccae5 100644 --- a/src/@fuse/services/confirmation/confirmation.service.ts +++ b/src/@fuse/services/confirmation/confirmation.service.ts @@ -51,7 +51,8 @@ export class FuseConfirmationService return this._matDialog.open(FuseConfirmationDialogComponent, { autoFocus : false, disableClose: !userConfig.dismissible, - data : userConfig + data : userConfig, + panelClass : 'fuse-confirmation-dialog-panel' }); } } diff --git a/src/@fuse/services/confirmation/dialog/dialog.component.html b/src/@fuse/services/confirmation/dialog/dialog.component.html index f8de9884..1d15451d 100644 --- a/src/@fuse/services/confirmation/dialog/dialog.component.html +++ b/src/@fuse/services/confirmation/dialog/dialog.component.html @@ -1,4 +1,4 @@ -
+
@@ -14,7 +14,7 @@ -
+
diff --git a/src/@fuse/services/confirmation/dialog/dialog.component.ts b/src/@fuse/services/confirmation/dialog/dialog.component.ts index 52d718c3..4dd92d3f 100644 --- a/src/@fuse/services/confirmation/dialog/dialog.component.ts +++ b/src/@fuse/services/confirmation/dialog/dialog.component.ts @@ -5,6 +5,20 @@ import { FuseConfirmationConfig } from '@fuse/services/confirmation/confirmation @Component({ selector : 'fuse-confirmation-dialog', templateUrl : './dialog.component.html', + styles : [ + /* language=SCSS */ + ` + .fuse-confirmation-dialog-panel { + @screen md { + @apply w-128; + } + + .mat-dialog-container { + padding: 0 !important; + } + } + ` + ], encapsulation: ViewEncapsulation.None }) export class FuseConfirmationDialogComponent implements OnInit