File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 169
169
v-click-outside =" closeOptions"
170
170
class =" menu-options"
171
171
:class =" { 'menu-left': message.sender_id !== currentUserId }"
172
- :style =" { top: `${menuOptionsHeight }px` }"
172
+ :style =" { top: `${menuOptionsTop }px` }"
173
173
>
174
174
<div class =" menu-list" >
175
175
<div
@@ -244,7 +244,7 @@ export default {
244
244
imageHover: false ,
245
245
messageHover: false ,
246
246
optionsOpened: false ,
247
- menuOptionsHeight : 0 ,
247
+ menuOptionsTop : 0 ,
248
248
messageReaction: ' ' ,
249
249
newMessage: {},
250
250
emojiOpened: false ,
@@ -417,17 +417,17 @@ export default {
417
417
)
418
418
return
419
419
420
- const menuOptionsHeight = this .$refs .menuOptions .getBoundingClientRect ()
420
+ const menuOptionsTop = this .$refs .menuOptions .getBoundingClientRect ()
421
421
.height
422
422
423
423
const actionIconTop = this .$refs .actionIcon .getBoundingClientRect ().top
424
424
const roomFooterTop = this .roomFooterRef .getBoundingClientRect ().top
425
425
426
426
const optionsTopPosition =
427
- roomFooterTop - actionIconTop > menuOptionsHeight + 50
427
+ roomFooterTop - actionIconTop > menuOptionsTop + 50
428
428
429
- if (optionsTopPosition) this .menuOptionsHeight = 28
430
- else this .menuOptionsHeight = - menuOptionsHeight
429
+ if (optionsTopPosition) this .menuOptionsTop = 30
430
+ else this .menuOptionsTop = - menuOptionsTop
431
431
}, 0 )
432
432
},
433
433
closeOptions () {
@@ -820,5 +820,9 @@ export default {
820
820
.options-container {
821
821
right : 5px ;
822
822
}
823
+
824
+ .menu-left {
825
+ right : -50px ;
826
+ }
823
827
}
824
828
</style >
You can’t perform that action at this time.
0 commit comments