diff --git a/components/cycle-day/symptom-page-title.js b/components/cycle-day/symptom-page-title.js index 6203c1c..41885ee 100644 --- a/components/cycle-day/symptom-page-title.js +++ b/components/cycle-day/symptom-page-title.js @@ -24,6 +24,9 @@ const SymptomPageTitle = ({ reloadSymptomData(nextDay) setDate(nextDay) } + const formattedTitle = title.length > 21 + ? title.substring(0, 18) + '...' + : title return ( @@ -31,7 +34,7 @@ const SymptomPageTitle = ({ - {title} + {formattedTitle} {subtitle && {subtitle}} navigate(true)} hitSlop={HIT_SLOP}>