chore: Minor fix

This commit is contained in:
iamsivin
2025-05-23 14:02:13 +05:30
parent d3e3809118
commit 2e6998e57a
4 changed files with 10 additions and 20 deletions
@@ -1,12 +1,5 @@
<script setup>
import {
computed,
useTemplateRef,
ref,
onMounted,
reactive,
inject,
} from 'vue';
import { computed, useTemplateRef, ref, onMounted, reactive } from 'vue';
import { Letter } from 'vue-letter';
import { allowedCssProperties } from 'lettersanitizer';
import { useToggle } from '@vueuse/core';
@@ -40,7 +33,6 @@ const contentContainer = useTemplateRef('contentContainer');
// Forward form - managed locally but can be triggered by parent
const [showForwardMessageModal, toggleForwardModal] = useToggle();
const forwardFormPosition = reactive({ top: 0, right: 0 });
const conversationPanelRef = inject('conversationPanelRef', null);
onMounted(() => {
isExpandable.value = contentContainer.value?.scrollHeight > 400;
@@ -236,7 +228,6 @@ defineExpose({
v-if="showForwardMessageModal"
:x="forwardFormPosition.x"
:y="forwardFormPosition.y"
:scroll-lock-element="conversationPanelRef?.$el"
@close="closeForwardModal"
>
<ForwardMessageForm