@marianmeres/widget-provider 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/draggable.js +5 -2
- package/package.json +1 -1
package/dist/draggable.js
CHANGED
|
@@ -62,8 +62,8 @@ export function makeDraggable(container, iframe, options = {}) {
|
|
|
62
62
|
justifyContent: "center",
|
|
63
63
|
userSelect: "none",
|
|
64
64
|
touchAction: "none",
|
|
65
|
-
opacity: "0.
|
|
66
|
-
color: "
|
|
65
|
+
opacity: "0.6",
|
|
66
|
+
color: "#808080",
|
|
67
67
|
});
|
|
68
68
|
if (options.handleStyle) {
|
|
69
69
|
Object.assign(handle.style, options.handleStyle);
|
|
@@ -75,6 +75,9 @@ export function makeDraggable(container, iframe, options = {}) {
|
|
|
75
75
|
svg.style.width = "100%";
|
|
76
76
|
svg.style.height = "100%";
|
|
77
77
|
svg.style.pointerEvents = "none";
|
|
78
|
+
// dual drop-shadow ensures visibility on both dark and light backgrounds
|
|
79
|
+
svg.style.filter =
|
|
80
|
+
"drop-shadow(0 0 1px rgba(255,255,255,0.9)) drop-shadow(0 0 1px rgba(0,0,0,0.9))";
|
|
78
81
|
}
|
|
79
82
|
// insert handle as an overlay (no layout impact on iframe)
|
|
80
83
|
container.style.position ||= "relative";
|