chore: Disable drag on macro item when preview is open (#11847)
This commit is contained in:
@@ -104,7 +104,6 @@ onMounted(() => {
|
|||||||
:key="element.id"
|
:key="element.id"
|
||||||
:macro="element"
|
:macro="element"
|
||||||
:conversation-id="conversationId"
|
:conversation-id="conversationId"
|
||||||
class="drag-handle cursor-grab"
|
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</Draggable>
|
</Draggable>
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ const closeMacroPreview = () => {
|
|||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
class="relative flex items-center justify-between leading-4 rounded-md h-10 pl-3 pr-2"
|
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
|
<span
|
||||||
class="overflow-hidden whitespace-nowrap text-ellipsis font-medium text-n-slate-12"
|
class="overflow-hidden whitespace-nowrap text-ellipsis font-medium text-n-slate-12"
|
||||||
|
|||||||
Reference in New Issue
Block a user