diff --git a/gui/public/images/assignment-pose.webp b/gui/public/images/assignment-pose.webp deleted file mode 100644 index 81e443aa5..000000000 Binary files a/gui/public/images/assignment-pose.webp and /dev/null differ diff --git a/gui/src/components/commons/BodyInteractions.tsx b/gui/src/components/commons/BodyInteractions.tsx index 0ceb36748..cd25a8372 100644 --- a/gui/src/components/commons/BodyInteractions.tsx +++ b/gui/src/components/commons/BodyInteractions.tsx @@ -9,6 +9,7 @@ export function BodyInteractions({ rightControls, highlightedRoles, assignedRoles, + width = 248, dotsSize = 15, variant = 'tracker-select', mirror, @@ -98,11 +99,11 @@ export function BodyInteractions({ const slotsPos = getSlotsPos(); const controlsPos = getControlsPos(); - canvasRefRef.current.width = canvasRefRef.current.clientWidth; - canvasRefRef.current.height = canvasRefRef.current.clientHeight; + canvasRefRef.current.width = canvasRefRef.current.offsetWidth; + canvasRefRef.current.height = canvasRefRef.current.offsetHeight; ctx.strokeStyle = '#608AAB'; - ctx.lineWidth = 2; + ctx.lineWidth = 1; const canvasBox = canvasRefRef.current.getBoundingClientRect(); const personBox = personRef.current.getBoundingClientRect(); @@ -191,27 +192,30 @@ export function BodyInteractions({ }, []); return ( -
+
-
+
{leftControls}
- + {slotsButtonsPos.map( ({ top, left, height, width, id, hidden, buttonOffset }) => (