Skip to content

Commit fbb04c3

Browse files
committed
Fix issue with rotate-gradient controls
1 parent ef6f833 commit fbb04c3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

features/rotate-gradient/script.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,7 @@ export default async function ({ feature, console }) {
4545
let handle = document.createElement("div");
4646
handleSlider(handle, value);
4747
handle.className = "ste-direction-handle slider_handle_3f0xk";
48-
handle.style.left = "124px";
49-
if (feature.traps.paint().selectedItems[0]?.opacity) {
50-
handle.style.left = "0px";
51-
}
48+
handle.style.left = "0px";
5249
slider.appendChild(handle);
5350

5451
body.firstChild.insertBefore(div, body.querySelector("div[class^='color-picker_row-header_']").parentElement);

0 commit comments

Comments
 (0)