Skip to content

Commit b812a60

Browse files
authored
Merge pull request #2169 from appirio-tech/hotfix/dashboard-freeze-on-mobile
fix freezing project dashboard page on mobile resolutions
2 parents 4c07a39 + 04a7217 commit b812a60

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/components/ProjectInfo/ProjectInfo.jsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,14 @@ class ProjectInfo extends Component {
6161
project={project}
6262
currentMemberRole={currentMemberRole}
6363
duration={duration}
64-
descLinesCount={matches ? 4 : Infinity}
64+
descLinesCount={
65+
/* has to be not too big value here,
66+
because the plugin will make this number of iterations
67+
see https://github.com/ShinyChang/React-Text-Truncate/blob/master/src/TextTruncate.js#L133
68+
too big value may cause browser tab to freeze
69+
*/
70+
matches ? 4 : 1000
71+
}
6572
onChangeStatus={onChangeStatus}
6673
isSuperUser={isSuperUser}
6774
showLink

0 commit comments

Comments
 (0)