From 3cfd84bd9a2a7adbd4b960d3a075536baf2865e4 Mon Sep 17 00:00:00 2001 From: khk Date: Mon, 13 Jan 2020 16:24:38 +0900 Subject: [PATCH] =?UTF-8?q?=EC=AA=BD=EC=A7=80=20=EB=A6=AC=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../message-detail.dialog.component.html | 4 +- .../message-detail.dialog.component.scss | 38 +++++++++++++- .../lib/components/list-item.component.html | 30 ++++++++++- .../lib/components/list-item.component.scss | 52 +++++++++++++++++++ 4 files changed, 119 insertions(+), 5 deletions(-) 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 f5fd3df7..26ea44f6 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 @@ -143,7 +143,8 @@
{{ file.resContent }} - {{ file.resSize | ucapBytes }} +
+ {{ file.resSize | ucapBytes }} - 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 fc124522..83ee9fe3 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 @@ -109,5 +109,41 @@ .ps { align-items: flex-start; } + .attachFile { + border-top: 1px solid #dddddd; + li { + display: flex; + flex-flow: row; + line-height: 2em; + flex: 1 1 auto; + .file-name { + display: inline-flex; + flex-flow: row; + flex: 1 1 auto; + border: 1px solid red; + white-space: nowrap; + word-wrap: normal; + overflow: hidden; + span:last-child { + overflow: hidden; + text-overflow: ellipsis; + display: block; + width: calc(100% - 40px); + } + } + .file-size { + display: inline-flex; + margin-left: auto; + align-self: flex-end; + flex: 0 0 auto; + margin: 0 10px; + } + a { + display: inline-block; + width: 20px; + height: 100%; + } + } + } } -} +} \ No newline at end of file diff --git a/projects/ucap-webmessenger-ui-message/src/lib/components/list-item.component.html b/projects/ucap-webmessenger-ui-message/src/lib/components/list-item.component.html index a2795aac..75a3957b 100644 --- a/projects/ucap-webmessenger-ui-message/src/lib/components/list-item.component.html +++ b/projects/ucap-webmessenger-ui-message/src/lib/components/list-item.component.html @@ -1,5 +1,5 @@ -
+ + +
+
+
+ + {{ message.userName }} + + {{ + 'message.andOthers' | translate: { count: message.userCount - 1 } + }} + + +
+
+ image + attach_file + {{ message.title }} +
+
+
+ {{ message.regDate | ucapDate: 'MM:DD' }} + + N + +
+
\ No newline at end of file diff --git a/projects/ucap-webmessenger-ui-message/src/lib/components/list-item.component.scss b/projects/ucap-webmessenger-ui-message/src/lib/components/list-item.component.scss index e69de29b..baeb82b3 100644 --- a/projects/ucap-webmessenger-ui-message/src/lib/components/list-item.component.scss +++ b/projects/ucap-webmessenger-ui-message/src/lib/components/list-item.component.scss @@ -0,0 +1,52 @@ +.message-list { + &.list-item { + dl { + display: flex; + flex-flow: column; + flex: 1 1 auto; + width: calc(100% - 80px); + dt { + .name { + font-size: 16px; + overflow: hidden; + text-overflow: ellipsis; + display: block; + white-space: nowrap; + word-wrap: normal; + font-weight: 600; + span { + font-size: 13px; + } + } + } + + dd { + color: #777777; + margin-top: 4px; + white-space: nowrap; + word-wrap: normal; + text-overflow: ellipsis; + display: block; + width: 100%; + position: relative; + overflow: hidden; + } + } + .date { + display: flex; + flex-flow: column; + align-self: flex-start; + .badge-new { + border-radius: 50%; + color: #ffffff; + padding: 0; + text-align: center; + align-self: flex-end; + width: 20px; + height: 20px; + font-size: 12px; + margin-top: 4px; + } + } + } +}