Message operation alignment improvements

This commit is contained in:
10G Meow 2022-04-25 08:43:27 +00:00 committed by N Pex
parent ecfde40147
commit 2db20d506a

View file

@ -831,8 +831,8 @@ export default {
this.$refs.messageOperationsStrut.getBoundingClientRect();
var rectOps =
this.$refs.messageOperations.$el.getBoundingClientRect();
top = rectAnchor.top - rectChat.top;
left = rectAnchor.left - rectChat.left;
top = rectAnchor.top - rectChat.top - 50;
left = rectAnchor.left - rectChat.left - 30;
if (left + rectOps.width >= rectChat.right) {
left = rectChat.right - rectOps.width - 10; // No overflow
}
@ -1598,7 +1598,7 @@ export default {
const event = e.event;
this.selectedEvent = event;
this.updateRecentEmojis();
this.showContextMenu = true;
this.showContextMenu = !this.showContextMenu;
this.showContextMenuAnchor = e.anchor;
},