Conditionally truncate category string (#1206)

* maybe truncate string

* add string formatting to test

* correct import

* destructuring

* add maxlength

* test

* Respond to feedback from @bkmartinjr

Co-authored-by: Matt Weiden <538456+mweiden@users.noreply.github.com>
This commit is contained in:
Colin Megill
2020-03-10 18:14:26 -07:00
committed by GitHub
co-authored by Matt Weiden
parent 28ddb60b2f
commit 234f25b782
4 changed files with 26 additions and 3 deletions
+1
View File
@@ -73,6 +73,7 @@ export const leftSidebarSectionHeading = {
export const leftSidebarSectionPadding = 10;
export const categoryLabelDisplayStringLongLength = 27;
export const categoryLabelDisplayStringShortLength = 11;
export const categoryDisplayStringMaxLength = 27;
export const maxUserDefinedGenes = 25;
export const maxGenes = 100;