Skip to content

Commit

Permalink
internal: fixes synth drag popover implementation where margin and pa…
Browse files Browse the repository at this point in the history
…dding were erroneously being removed from default drag item
  • Loading branch information
sashamilenkovic committed Dec 9, 2024
1 parent dc14084 commit 61ab8e8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1971,8 +1971,6 @@ function initSynthDrag<T>(
width: node.el.getBoundingClientRect().width + "px",
overflow: "hidden",
pointerEvents: "none",
margin: 0,
padding: 0,
zIndex: 9999,
});
} else {
Expand Down Expand Up @@ -2005,8 +2003,6 @@ function initSynthDrag<T>(

dragImage.style.position = "absolute";

console.log("dragImage", dragImage);

parent.el.appendChild(dragImage);

dragImage.showPopover();
Expand All @@ -2031,8 +2027,6 @@ function initSynthDrag<T>(
...synthDragStateProps,
}) as SynthDragState<T>;

console.log("synthDragState", synthDragState);

synthDragState.clonedDraggedNode.style.display =
synthDragState.draggedNodeDisplay || "";

Expand Down
2 changes: 1 addition & 1 deletion tests/.nuxt/nuxt.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Generated by nuxi
/// <reference types="@nuxtjs/tailwindcss" />
/// <reference types="@nuxt/devtools" />
/// <reference types="@nuxt/telemetry" />
/// <reference types="@nuxt/devtools" />
/// <reference types="nuxt" />
/// <reference path="types/app-defaults.d.ts" />
/// <reference path="types/plugins.d.ts" />
Expand Down

0 comments on commit 61ab8e8

Please sign in to comment.