Skip to content

Commit

Permalink
fix: Distance of padding handlers
Browse files Browse the repository at this point in the history
2 (thickness of border) + 2 (half of the height of handler) + 6 (distance from the edge) = 10px
  • Loading branch information
surajshetty3416 committed Jan 20, 2025
1 parent 4af4471 commit 71064bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/src/components/PaddingHandler.vue
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ const topHandle = computed(() => {
return {
width: width,
height: height,
bottom: `clamp(-20px, calc(-6px * ${canvasProps.scale}), -8px)`,
bottom: `clamp(-20px, calc(-10px * ${canvasProps.scale}), -6px)`,
left: `calc(50% - ${width / 2}px)`,
};
});
Expand All @@ -203,7 +203,7 @@ const bottomHandle = computed(() => {
return {
width: width,
height: height,
top: `clamp(-20px, calc(-6px * ${canvasProps.scale}), -8px)`,
top: `clamp(-20px, calc(-10px * ${canvasProps.scale}), -6px)`,
left: `calc(50% - ${width / 2}px)`,
};
});
Expand All @@ -214,7 +214,7 @@ const leftHandle = computed(() => {
return {
width: width,
height: height,
right: `clamp(-20px, calc(-6px * ${canvasProps.scale}), -8px)`,
right: `clamp(-20px, calc(-10px * ${canvasProps.scale}), -6px)`,
top: `calc(50% - ${height / 2}px)`,
};
});
Expand All @@ -225,7 +225,7 @@ const rightHandle = computed(() => {
return {
width: width,
height: height,
left: `clamp(-20px, calc(-6px * ${canvasProps.scale}), -8px)`,
left: `clamp(-20px, calc(-10px * ${canvasProps.scale}), -6px)`,
top: `calc(50% - ${height / 2}px)`,
};
});
Expand Down

0 comments on commit 71064bb

Please sign in to comment.