Skip to content

Commit

Permalink
Issue twentyhq#5267 Fixed: Added a length bound to title
Browse files Browse the repository at this point in the history
  • Loading branch information
heckop committed May 11, 2024
1 parent b45c614 commit 02f1026
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ export const CalendarEventRow = ({
</StyledTime>
{showTitle ? (
<StyledTitle active={!hasEnded} canceled={!!calendarEvent.isCanceled}>
{calendarEvent.title.length > 30
? `${calendarEvent.title.substring(0, 30)}...`
{calendarEvent.title.length > 50
? `${calendarEvent.title.slice(0, 50).trim()} ...`
: calendarEvent.title}
</StyledTitle>
) : (
Expand Down

0 comments on commit 02f1026

Please sign in to comment.