chore: Disable drag on macro item when preview is open (#11847)

This commit is contained in:
Sivin Varghese
2025-07-02 11:59:15 +05:30
committed by GitHub
parent ef591f848a
commit cdb1dc6714
2 changed files with 1 additions and 1 deletions

View File

@@ -104,7 +104,6 @@ onMounted(() => {
:key="element.id"
:macro="element"
:conversation-id="conversationId"
class="drag-handle cursor-grab"
/>
</template>
</Draggable>

View File

@@ -54,6 +54,7 @@ const closeMacroPreview = () => {
<template>
<div
class="relative flex items-center justify-between leading-4 rounded-md h-10 pl-3 pr-2"
:class="showPreview ? 'cursor-default' : 'drag-handle cursor-grab'"
>
<span
class="overflow-hidden whitespace-nowrap text-ellipsis font-medium text-n-slate-12"