fix(reaction): use the actual button element to compute rect, not the vue component

Resolves https://github.com/go-vikunja/vikunja/issues/1913
This commit is contained in:
kolaente
2025-12-01 15:48:59 +01:00
parent 5fc9b74f50
commit dbb4046d51

View File

@@ -113,7 +113,7 @@ const emojiPickerPosition = ref()
function toggleEmojiPicker() {
if (!showEmojiPicker.value) {
const rect = emojiPickerButtonRef.value?.getBoundingClientRect()
const rect = emojiPickerButtonRef.value?.$el?.getBoundingClientRect()
const container = reactionContainerRef.value?.getBoundingClientRect()
if (rect && container) {
const left = rect.left - container.left + rect.width