mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 14:30:41 +00:00
feat: new drag preview
This commit is contained in:
@@ -2,12 +2,13 @@
|
||||
<Teleport to="body">
|
||||
<div
|
||||
v-if="isDragging && draggedNode"
|
||||
class="pointer-events-none fixed z-[10000] rounded-md bg-comfy-menu-bg px-3 py-2 text-sm font-medium text-foreground shadow-lg border border-border-default"
|
||||
class="pointer-events-none fixed z-[10000] flex items-center gap-2 rounded-lg bg-neutral-700 px-3 py-2 text-sm font-medium text-neutral-400 shadow-lg"
|
||||
:style="{
|
||||
left: `${cursorPosition.x + 12}px`,
|
||||
top: `${cursorPosition.y + 12}px`
|
||||
}"
|
||||
>
|
||||
<span class="size-3 shrink-0 rounded-full bg-neutral-500" />
|
||||
{{ draggedNode.display_name }}
|
||||
</div>
|
||||
</Teleport>
|
||||
|
||||
Reference in New Issue
Block a user