From f174604296fa8d00e318f76ced7e3ec59d2867a4 Mon Sep 17 00:00:00 2001 From: leejh Date: Fri, 21 Feb 2020 17:01:39 +0900 Subject: [PATCH] =?UTF-8?q?=EC=95=A8=EB=B2=94=ED=95=A8=EC=97=90=EC=84=9C?= =?UTF-8?q?=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EB=B7=B0=EC=96=B4=20=EC=97=B0?= =?UTF-8?q?=EA=B2=B0=ED=95=98=EB=8A=94=20=EA=B8=B0=EB=8A=A5=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../right-drawer/album-box.component.html | 3 ++ .../right-drawer/album-box.component.scss | 4 ++ .../right-drawer/album-box.component.ts | 46 +++++++++---------- 3 files changed, 30 insertions(+), 23 deletions(-) diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer/album-box.component.html b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer/album-box.component.html index eb8c74cd..fd3fe062 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer/album-box.component.html +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer/album-box.component.html @@ -158,6 +158,9 @@ + diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer/album-box.component.scss b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer/album-box.component.scss index 4568b92c..db4564e8 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer/album-box.component.scss +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer/album-box.component.scss @@ -109,6 +109,10 @@ $tablet-s-width: 768px; .btn-download { margin-left: auto; height: 40px; + button { + padding: 0 0 0 5px; + min-width: auto; + } } } } diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer/album-box.component.ts b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer/album-box.component.ts index ca4427cd..7776990f 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer/album-box.component.ts +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer/album-box.component.ts @@ -269,28 +269,28 @@ export class AlbumBoxComponent implements OnInit, OnDestroy { } } - async onFileViewer(event: MouseEvent, fileInfos: FileInfoTotal) { - // const result = await this.dialogService.open< - // FileViewerDialogComponent, - // FileViewerDialogData, - // FileViewerDialogResult - // >(FileViewerDialogComponent, { - // position: { - // top: '50px' - // }, - // maxWidth: '100vw', - // maxHeight: '100vh', - // height: 'calc(100% - 50px)', - // width: '100%', - // hasBackdrop: false, - // panelClass: 'app-dialog-full', - // data: { - // fileInfo: fileInfos.info.sentMessageJson, - // downloadUrl: this.sessionVerinfo.downloadUrl, - // deviceType: this.environmentsInfo.deviceType, - // token: this.loginRes.tokenString, - // userSeq: this.loginRes.userSeq - // } - // }); + async onFileViewer(fileInfos: FileInfoTotal) { + const result = await this.dialogService.open< + FileViewerDialogComponent, + FileViewerDialogData, + FileViewerDialogResult + >(FileViewerDialogComponent, { + position: { + top: '50px' + }, + maxWidth: '100vw', + maxHeight: '100vh', + height: 'calc(100% - 50px)', + width: '100%', + hasBackdrop: false, + panelClass: 'app-dialog-full', + data: { + fileInfo: fileInfos.info.sentMessageJson, + downloadUrl: this.sessionVerinfo.downloadUrl, + deviceType: this.environmentsInfo.deviceType, + token: this.loginRes.tokenString, + userSeq: this.loginRes.userSeq + } + }); } }