Skip to content

Commit

Permalink
fixed icon location for click-to-pregrasp
Browse files Browse the repository at this point in the history
  • Loading branch information
hello-vinitha committed Aug 2, 2024
1 parent 232babd commit 095daed
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/pages/operator/tsx/layout_components/CameraView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -311,16 +311,15 @@ export const CameraView = (props: CustomizableComponentProps) => {
/>
{overlayContainer}
{selectObjectScaledXY ? (
<span
className="realsense"
<AddIcon
style={{
position: "absolute",
left: (selectObjectScaledXY[0] * 100).toString() + "%",
top: (selectObjectScaledXY[1] * 100).toString() + "%",
fontSize: selectObjectFontSize,
color: "red",
transform: "translateX(-50%) translateY(-50%)",
}}
>
<AddIcon />
</span>
/>
) : undefined}
</div>
);
Expand Down

0 comments on commit 095daed

Please sign in to comment.