diff --git a/frontend/javascripts/oxalis/view/context_menu.tsx b/frontend/javascripts/oxalis/view/context_menu.tsx index a20196dba53..c6831513f92 100644 --- a/frontend/javascripts/oxalis/view/context_menu.tsx +++ b/frontend/javascripts/oxalis/view/context_menu.tsx @@ -1652,16 +1652,16 @@ function ContextMenuInner(propsWithInputRef: Props) { } if (wasSegmentOrMeshClicked) { - infoRows.push( - getInfoMenuItem( - "copy-cell", - <> -
- Segment ID: {`${clickedSegmentOrMeshId}`}{" "} - {copyIconWithTooltip(clickedSegmentOrMeshId, "Copy Segment ID")} - , - ), - ); + /* infoRows.push( + getInfoMenuItem( + "copy-cell", + <> +
+ Segment ID: {`${clickedSegmentOrMeshId}`}{" "} + {copyIconWithTooltip(clickedSegmentOrMeshId, "Copy Segment ID")} + , + ), + ); */ } if (segments != null) { const segmentName = segments.getNullable(clickedSegmentOrMeshId)?.name; @@ -1672,20 +1672,24 @@ function ContextMenuInner(propsWithInputRef: Props) { getInfoMenuItem( "copy-cell", <> - - maxNameLengthSecondLine ? segmentName : null}> - Segment Name:{" "} - {segmentName.length < maxNameLengthFirstLine && - truncateStringToLength(segmentName, maxNameLengthFirstLine)} - {segmentName.length < maxNameLengthFirstLine && - copyIconWithTooltip(segmentName, "Copy Segment Name")} -
- {segmentName.length > maxNameLengthFirstLine && - truncateStringToLength(segmentName, maxNameLengthSecondLine)} - {segmentName.length > maxNameLengthFirstLine && +
+ Segment ID: {`${clickedSegmentOrMeshId}`}{" "} + {copyIconWithTooltip(clickedSegmentOrMeshId, "Copy Segment ID")} +
+ maxNameLengthSecondLine ? segmentName : null}> + Segment Name:{" "} + {segmentName.length < maxNameLengthFirstLine && + truncateStringToLength(segmentName, maxNameLengthFirstLine)} + {segmentName.length < maxNameLengthFirstLine && copyIconWithTooltip(segmentName, "Copy Segment Name")} -
- +
+ {segmentName.length > maxNameLengthFirstLine && + truncateStringToLength(segmentName, maxNameLengthSecondLine)} + {segmentName.length > maxNameLengthFirstLine && + copyIconWithTooltip(segmentName, "Copy Segment Name")} +
+ +
, ), );