fix(segmentation): Use the series description for the segmentation label (#3517)

This commit is contained in:
Joe Boccanfuso 2023-07-04 14:39:39 -04:00 committed by GitHub
parent b0a456a46c
commit ed44ad7f4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -542,6 +542,7 @@ class SegmentationService extends PubSubService {
id: segmentationId,
displaySetInstanceUID: segDisplaySet.displaySetInstanceUID,
type: representationType,
label: segDisplaySet.SeriesDescription,
representationData: {
[LABELMAP]: {
volumeId: segmentationId,
@ -789,6 +790,7 @@ class SegmentationService extends PubSubService {
id: segmentationId,
displaySetInstanceUID: rtDisplaySetUID,
type: representationType,
label: rtDisplaySet.SeriesDescription,
representationData: {
[CONTOUR]: {
geometryIds,

View File

@ -82,7 +82,9 @@ const SegmentGroupHeader = ({
}
)}
/>
<span className="text-white ">{label.toUpperCase()}</span>
<span className="text-white w-full whitespace-nowrap text-ellipsis overflow-hidden">
{label.toUpperCase()}
</span>
<div className="flex-grow" />
<span className="text-white ">{segmentCount}</span>
<div