From 2db20d506ab47c60c6e088df0f47718f3414780b Mon Sep 17 00:00:00 2001 From: 10G Meow <10gmeow@gmail.com> Date: Mon, 25 Apr 2022 08:43:27 +0000 Subject: [PATCH] Message operation alignment improvements --- src/components/Chat.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Chat.vue b/src/components/Chat.vue index 08e446a..a86caf2 100644 --- a/src/components/Chat.vue +++ b/src/components/Chat.vue @@ -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; },