Skip to content

Conversation

@maxceem
Copy link
Collaborator

@maxceem maxceem commented Jul 9, 2018

TLDR

The fix is easy, clear and robust, safe for deploy.

Details

The issue was with the package react-text-truncate that we use to truncate too long project description on the dashboard with read more link.

For mobile resolutions, the truncate maximum lines has been set to Infinity which caused in some circumstances the infinite loop in the plugin, see https://github.com/ShinyChang/React-Text-Truncate/blob/master/src/TextTruncate.js#L133

I put 1000 as trancate maximum lines, feels like this is enogh for project descriptions to be shown fully without trancations.

NOTE, that even big finite values like 1 000 000 cause browser to freeze.

@maxceem maxceem added the Hot Fix label Jul 9, 2018
@maxceem maxceem requested a review from RishiRajSahu July 9, 2018 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants