diff --git a/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.html b/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.html
index 05a91a6f8c..817a38f115 100644
--- a/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.html
+++ b/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.html
@@ -1,4 +1,4 @@
-
+
= Array<{
value: T
}>
+const DEFAULT_ROW_NUMBERS = 6
+
@Component({
selector: 'gn-ui-dropdown-selector',
templateUrl: './dropdown-selector.component.html',
@@ -67,11 +69,14 @@ export class DropdownSelectorComponent implements OnInit {
}
getChoiceLabel(): string {
- return this.selectedChoice.label
+ return (
+ this.selectedChoice.label.substring(0, 50) +
+ (this.selectedChoice.label.length > 50 ? '...' : '')
+ )
}
ngOnInit(): void {
- if (!this.maxRows) this.maxRows = 6
+ if (!this.maxRows) this.maxRows = DEFAULT_ROW_NUMBERS
}
isSelected(choice) {