Skip to content

Commit

Permalink
fix(segmentation): Use the series description for the segmentation la…
Browse files Browse the repository at this point in the history
…bel.

Do not allow the segmentation label to wrap in the SegmentationGroup header.
Instead use an ellipsis.
  • Loading branch information
Joe Boccanfuso committed Jul 4, 2023
1 parent b0a456a commit bd8eff7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@ class SegmentationService extends PubSubService {
id: segmentationId,
displaySetInstanceUID: segDisplaySet.displaySetInstanceUID,
type: representationType,
label: segDisplaySet.SeriesDescription,
representationData: {
[LABELMAP]: {
volumeId: segmentationId,
Expand Down Expand Up @@ -789,6 +790,7 @@ class SegmentationService extends PubSubService {
id: segmentationId,
displaySetInstanceUID: rtDisplaySetUID,
type: representationType,
label: rtDisplaySet.SeriesDescription,
representationData: {
[CONTOUR]: {
geometryIds,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bd8eff7

Please sign in to comment.