File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 170
170
:class =" {
171
171
'reaction-me': reaction.indexOf(currentUserId) !== -1
172
172
}"
173
+ :style =" {
174
+ float: message.sender_id === currentUserId ? 'right' : 'left'
175
+ }"
173
176
@click =" sendMessageReaction({ name: key }, reaction)"
174
177
>
175
178
{{ getEmojiByName(key) }}<span >{{ reaction.length }}</span >
@@ -234,6 +237,9 @@ export default {
234
237
this .newMessage = val .reduce ((res , obj ) =>
235
238
obj .index < res .index ? obj : res
236
239
)
240
+ },
241
+ emojiOpened (val ) {
242
+ if (val) this .closeOptions ()
237
243
}
238
244
},
239
245
@@ -354,7 +360,9 @@ export default {
354
360
if (! this .optionsOpened ) return
355
361
356
362
setTimeout (() => {
357
- if (! this .$refs .menuOptions || ! this .roomFooterRef ) return
363
+ if (! this .roomFooterRef || ! this .$refs .menuOptions || ! this .actionIcon )
364
+ return
365
+
358
366
const menuOptionsHeight = this .$refs .menuOptions .getBoundingClientRect ()
359
367
.height
360
368
Original file line number Diff line number Diff line change @@ -405,7 +405,7 @@ export default {
405
405
},
406
406
resizeTextarea (textarea ) {
407
407
textarea .style .height = 0
408
- textarea .style .height = textarea .scrollHeight + 2 + ' px'
408
+ textarea .style .height = textarea .scrollHeight + ' px'
409
409
},
410
410
addEmoji (emoji ) {
411
411
this .message += emoji .icon
You can’t perform that action at this time.
0 commit comments