File tree Expand file tree Collapse file tree 3 files changed +18
-7
lines changed Expand file tree Collapse file tree 3 files changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ export default {
273
273
if (message .file ) content = ` ${ message .file .name } .${ message .file .type } `
274
274
if (message .deleted ) content = ' This message was deleted'
275
275
276
- return { content, timestamp }
276
+ return { content, timestamp, seen : message . seen }
277
277
},
278
278
279
279
fetchMessages ({ room, options = {} }) {
Original file line number Diff line number Diff line change @@ -372,6 +372,6 @@ export default {
372
372
height : 14px ;
373
373
width : 14px ;
374
374
vertical-align : middle ;
375
- margin : -3px 0 px 0 3px ;
375
+ margin : -3px 0 0 3px ;
376
376
}
377
377
</style >
Original file line number Diff line number Diff line change 40
40
<div class =" name-container" >
41
41
<div class =" room-name" >{{ room.roomName }}</div >
42
42
<div class =" room-name text-last" v-if =" room.lastMessage" >
43
- {{ room.lastMessage.content }}
43
+ <span v-if =" room.lastMessage.seen" >
44
+ <svg-icon fill =" #0696c7" name =" check" class =" icon-check" />
45
+ </span >
46
+ <span >{{ room.lastMessage.content }}</span >
44
47
</div >
45
48
<div class =" room-name text-date" v-if =" room.lastMessage" >
46
49
{{ room.lastMessage.timestamp }}
@@ -185,7 +188,7 @@ export default {
185
188
flex : 1 1 100% ;
186
189
padding : 0 16px ;
187
190
position : relative ;
188
- min-height : 70 px ;
191
+ min-height : 71 px ;
189
192
}
190
193
191
194
.room-avatar {
@@ -217,22 +220,30 @@ export default {
217
220
overflow : hidden ;
218
221
text-overflow : ellipsis ;
219
222
white-space : nowrap ;
220
- line-height : 20 px ;
223
+ line-height : 22 px ;
221
224
}
222
225
223
226
.text-last {
224
227
color : #67717a !important ;
225
228
font-size : 12px ;
226
- line-height : 15 px ;
229
+ line-height : 16 px ;
227
230
}
228
231
229
232
.text-date {
230
233
color : #a2aeb8 !important ;
231
234
font-size : 11px ;
232
- line-height : 15 px ;
235
+ line-height : 16 px ;
233
236
}
234
237
235
238
.room-disabled {
236
239
pointer-events : none ;
237
240
}
241
+
242
+ .icon-check {
243
+ height : 14px ;
244
+ width : 14px ;
245
+ vertical-align : middle ;
246
+ margin-top : -1px ;
247
+ margin-right : 1px ;
248
+ }
238
249
</style >
You can’t perform that action at this time.
0 commit comments