From 54c493d2af5d90b650b926dbe4a39e403563d3e5 Mon Sep 17 00:00:00 2001 From: khk Date: Thu, 26 Dec 2019 11:39:02 +0900 Subject: [PATCH] =?UTF-8?q?=EC=AA=BD=EC=A7=80-=20view=EC=88=98=EC=A0=95?= =?UTF-8?q?=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/messages.component.scss | 9 ++ .../message-detail.dialog.component.html | 125 ++++++++++++------ .../message-detail.dialog.component.scss | 86 ++++++++++++ .../src/assets/scss/global/_default.scss | 6 + .../src/lib/components/search.component.html | 8 +- .../src/lib/components/search.component.scss | 26 ++++ 6 files changed, 213 insertions(+), 47 deletions(-) diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/messages.component.scss b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/messages.component.scss index a85cb25b..37343312 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/messages.component.scss +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/messages.component.scss @@ -126,3 +126,12 @@ } } } + +.char-search { + width: 100%; + height: 80px; + background-color: #ffffff; + padding: 20px; + box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16); + border-bottom: 1px solid #dddddd; +} diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/message/message-detail.dialog.component.html b/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/message/message-detail.dialog.component.html index 21e7e0d8..48c2ebb5 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/message/message-detail.dialog.component.html +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/message/message-detail.dialog.component.html @@ -9,11 +9,66 @@ - -
-
+ +
+
+ + + + + + + + + + + + + + + + {{ getSendReceiverNames() }} +
+
{{ messageInfo.title }} - +
-
-
    -
  • - 보낸사람 - 받는사람 - {{ getSendReceiverNames() }} -
  • -
  • - 받은시간 - 보낸시간 - 발송예정시간 - {{ - messageInfo.regDate | ucapDate: 'YYYY.MM.DD (ddd) a hh:mm' - }} - {{ - messageInfo.reservationTime - | ucapDate: 'YYYY.MM.DD (ddd) a hh:mm' - }} -
  • -
+
+ 받은시간 + 보낸시간 + 발송예정시간 + {{ + messageInfo.regDate | ucapDate: 'YYYY.MM.DD (ddd) a hh:mm' + }} + {{ + messageInfo.reservationTime | ucapDate: 'YYYY.MM.DD (ddd) a hh:mm' + }}
    -
  • +
  • {{
                       cont.resContent
                     }}
    diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/message/message-detail.dialog.component.scss b/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/message/message-detail.dialog.component.scss index b2381d03..4a9405a2 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/message/message-detail.dialog.component.scss +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/message/message-detail.dialog.component.scss @@ -19,9 +19,95 @@ .contents { height: 380px; + .message-contents { + pre { + word-wrap: break-word; + white-space: pre-wrap; + word-break: break-word; + font-size: 0.98em; + color: #444444; + } + } .thumbnail { max-width: 250px; max-height: 250px; } } + +::ng-deep .message-container { + background-color: #ffffff !important; + .message-info { + .profile { + display: flex; + flex-flow: row; + align-items: center; + width: 100%; + padding-bottom: 20px; + border-bottom: 1px solid #dddddd; + .profile-img-mask { + width: 40px; + height: 40px; + border-radius: 50%; + overflow: hidden; + border: 1px solid #dddddd; + } + .people { + display: flex; + flex-flow: row; + align-items: center; + margin-left: -10px; + width: 20px; + height: 20px; + text-indent: -1000000px; + align-self: flex-end; + border-radius: 50%; + &.receiver, + &.sender { + svg { + stroke: #ffffff; + } + } + &.sender { + } + } + .name { + font-size: 16px; + margin-left: 20px; + } + } + .title { + display: flex; + flex-flow: row; + align-items: center; + font-size: 18px; + font-weight: 500; + padding: 10px 0 6px; + line-height: 24px; + color: #222222; + .btn-menu { + margin-left: auto; + color: #333333; + } + } + .date { + font-size: 13px; + display: flex; + flex-flow: row; + align-items: center; + padding-bottom: 14px; + + .label { + border-radius: 14px; + padding: 2px 10px; + margin-right: 10px; + font-size: 12px; + color: #ffffff; + line-height: 20px; + } + } + .ps { + align-items: flex-start; + } + } +} diff --git a/projects/ucap-webmessenger-app/src/assets/scss/global/_default.scss b/projects/ucap-webmessenger-app/src/assets/scss/global/_default.scss index e12eaea5..655d3875 100644 --- a/projects/ucap-webmessenger-app/src/assets/scss/global/_default.scss +++ b/projects/ucap-webmessenger-app/src/assets/scss/global/_default.scss @@ -212,6 +212,12 @@ $daesang-grey: ( background: mat-color($accent); color: mat-color($accent, default-contrast); } + .bg-warn-color { + background-color: mat-color($warn, 300); + } + .bg-warn-darkest { + background-color: mat-color($warn, 600); + } .text-primary-color { color: mat-color($primary); } diff --git a/projects/ucap-webmessenger-ui-chat/src/lib/components/search.component.html b/projects/ucap-webmessenger-ui-chat/src/lib/components/search.component.html index 42d85bf3..6fbd5fb8 100644 --- a/projects/ucap-webmessenger-ui-chat/src/lib/components/search.component.html +++ b/projects/ucap-webmessenger-ui-chat/src/lib/components/search.component.html @@ -1,5 +1,5 @@ -
    -
    +