diff --git a/package.json b/package.json index 127d7cd1..b7141823 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ucap-webmessenger", - "version": "0.0.20", + "version": "0.0.21", "author": { "name": "LG CNS", "email": "lgucap@lgcns.com" diff --git a/projects/ucap-webmessenger-app/src/app/app-translate.module.ts b/projects/ucap-webmessenger-app/src/app/app-translate.module.ts index 9034d687..b5e5d83d 100644 --- a/projects/ucap-webmessenger-app/src/app/app-translate.module.ts +++ b/projects/ucap-webmessenger-app/src/app/app-translate.module.ts @@ -19,8 +19,15 @@ export function createTranslateLoader(nativeService: NativeService) { break; case NativeType.Electron: prefix = environment.production - ? '/dist/ucap-webmessenger-app/assets/i18n/' + ? // normal + '/dist/ucap-webmessenger-app/assets/i18n/' : '/projects/ucap-webmessenger-app/src/assets/i18n/'; + // installer > aws + // ? '/dist/ucap-webmessenger-app/assets/i18n/' + // : '/dist/ucap-webmessenger-app/assets/i18n/'; + // vscode > prod + // ? '/projects/ucap-webmessenger-app/src/assets/i18n/' + // : '/projects/ucap-webmessenger-app/src/assets/i18n/'; break; diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-nav.component.scss b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-nav.component.scss index 1fdb3d35..643be540 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-nav.component.scss +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-nav.component.scss @@ -75,18 +75,3 @@ } } } - -// perfect-scrollbar right로 2px이동 -::ng-deep .ps__rail-y { - & > .ps__thumb-y { - margin-right: -2px; - } -} - -::ng-deep .cdk-virtual-scroll-orientation-vertical { - .cdk-virtual-scroll-content-wrapper { - width: 100%; - height: 100%; - contain: unset; - } -} diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/message.component.html b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/message.component.html index d83cb5cb..9c8f536e 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/message.component.html +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/message.component.html @@ -44,7 +44,7 @@ animationDuration="0ms" [selectedIndex]="0" (selectedIndexChange)="onSelectedIndexChange($event)" - class="message-tab" + class="message-tab tab_num3" > @@ -161,7 +161,7 @@ -
+
@@ -101,71 +102,70 @@
-
-
-
-
- -
-
- - - - +
+
+
-
+
- -
-
- - - - - - - -
-
-
+
+ + + + +
+
+
+
+
+
+ + + + + + + +
+
+
-
+
- +
-->
-
+
{{ attachment.name }} + >{{ attachment.name }}
diff --git a/projects/ucap-webmessenger-ui-message/src/lib/components/write.component.scss b/projects/ucap-webmessenger-ui-message/src/lib/components/write.component.scss index b23f81b3..cf69c853 100644 --- a/projects/ucap-webmessenger-ui-message/src/lib/components/write.component.scss +++ b/projects/ucap-webmessenger-ui-message/src/lib/components/write.component.scss @@ -128,25 +128,30 @@ margin-top: 10px; } } -.attach-file { - display: flex; - flex-flow: row; - flex: 1 1 auto; - .mat-list-item-content { - padding: 0 !important; + +.attach-file-list { + width: 100%; + .attach-file { + display: flex; + flex-flow: row; + flex: 1 1 auto; + width: 100%; + margin: 0 -16px; + align-items: center; + font-size: 0.9em; + border-bottom: 1px dotted #dddddd; + span { + margin-right: 6px; + flex: 0 0 auto; + } .file-name { display: flex; - width: 100%; - align-items: center; - font-size: 0.9em; - border-bottom: 1px dotted #dddddd; - span { - margin-right: 6px; - } - button { - width: 24px; - margin-left: auto; - } + flex: 1 1 auto; + } + button { + flex: 0 0 auto; + width: 24px; + margin-left: auto; } } } diff --git a/projects/ucap-webmessenger-ui-profile/src/lib/components/profile.component.html b/projects/ucap-webmessenger-ui-profile/src/lib/components/profile.component.html index 3f2d8d03..7517f517 100644 --- a/projects/ucap-webmessenger-ui-profile/src/lib/components/profile.component.html +++ b/projects/ucap-webmessenger-ui-profile/src/lib/components/profile.component.html @@ -12,7 +12,7 @@ v.seq === this.loginRes.userSeq - ); - if (!!me && me.length > 0) { - this.imagePath = me[0].profileImageFile; + if (!!this.roomUserInfo && !!this.loginRes) { + const me = this.roomUserInfo.filter( + v => v.seq === this.loginRes.userSeq + ); + if (!!me && me.length > 0) { + this.imagePath = me[0].profileImageFile; + } } break; case RoomType.Single: @@ -101,11 +103,13 @@ export class ListItemComponent implements OnInit { case RoomType.Allim: case RoomType.Allim_Elephant: case RoomType.Allim_TMS: - const others = this.roomUserInfo.filter( - v => v.seq !== this.loginRes.userSeq - ); - if (!!others && others.length > 0) { - this.imagePath = others[0].profileImageFile; + if (!!this.roomUserInfo && !!this.loginRes) { + const others = this.roomUserInfo.filter( + v => v.seq !== this.loginRes.userSeq + ); + if (!!others && others.length > 0) { + this.imagePath = others[0].profileImageFile; + } } break; } @@ -113,13 +117,15 @@ export class ListItemComponent implements OnInit { get _roomUserInfos() { if (this.roomInfo.roomType === RoomType.Single) { - return this.roomUserInfo.filter(roomUserInfo => { - return this.loginRes.userSeq !== roomUserInfo.seq; - }); + return this.roomUserInfo.filter( + roomUserInfo => + !!this.loginRes && this.loginRes.userSeq !== roomUserInfo.seq + ); } else { return this.roomUserInfo .filter(roomUserInfo => { return ( + !!this.loginRes && this.loginRes.userSeq !== roomUserInfo.seq && roomUserInfo.isJoinRoom );