chore: Disable drag on macro item when preview is open (#11847)
This commit is contained in:
@@ -104,7 +104,6 @@ onMounted(() => {
|
||||
:key="element.id"
|
||||
:macro="element"
|
||||
:conversation-id="conversationId"
|
||||
class="drag-handle cursor-grab"
|
||||
/>
|
||||
</template>
|
||||
</Draggable>
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user