diff --git a/claims/claim-utils/claimResultSearchForm.component.html b/claims/claim-utils/claimResultSearchForm.component.html
index eabb65c5..7880cb75 100644
--- a/claims/claim-utils/claimResultSearchForm.component.html
+++ b/claims/claim-utils/claimResultSearchForm.component.html
@@ -113,11 +113,13 @@
-
-
- {{type.title}}
-
({{type.count|number}})
+
+
+ {{_formatName(type.title,type.count)}}
+ {{' (' + (type.count|number) + ')'}}
+
+
@@ -131,12 +133,16 @@
-
+
@@ -259,7 +265,8 @@
diff --git a/claims/claim-utils/claimResultSearchForm.component.ts b/claims/claim-utils/claimResultSearchForm.component.ts
index 737acfb2..a02e8148 100644
--- a/claims/claim-utils/claimResultSearchForm.component.ts
+++ b/claims/claim-utils/claimResultSearchForm.component.ts
@@ -855,4 +855,15 @@ export class ClaimResultSearchFormComponent {
}
return count;
}
+ public _formatName(value, number){
+ let maxLineLength = 29;
+ //1 space after checkbox
+ //3 space before number + parenthesis
+ if(number && value.length+number.toLocaleString().length +1 +3> maxLineLength){
+ return value.substr(0, (maxLineLength- 3 -4 - number.toLocaleString().length))+'...';
+ }else if(!number && value.length + 1 > maxLineLength){
+ return value.substr(0, (maxLineLength- 3 -1 ))+'...';
+ }
+ return value;
+ }
}
diff --git a/claims/claim-utils/displayClaims/displayClaims.component.html b/claims/claim-utils/displayClaims/displayClaims.component.html
index 5e64770a..696e2955 100644
--- a/claims/claim-utils/displayClaims/displayClaims.component.html
+++ b/claims/claim-utils/displayClaims/displayClaims.component.html
@@ -4,7 +4,7 @@