File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/projects/detail/components/PhaseCard Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import PT from 'prop-types'
88import { connect } from 'react-redux'
99import MediaQuery from 'react-responsive'
1010import cn from 'classnames'
11+ import TextTruncate from 'react-text-truncate'
1112
1213import {
1314 PHASE_STATUS ,
@@ -108,7 +109,14 @@ class PhaseCard extends React.Component {
108109 < ProjectTypeIcon type = { attr . icon } />
109110 </ div >
110111 < div styleName = "project-title-container" >
111- < h4 styleName = "project-title" > { attr . title } </ h4 >
112+ < h4 styleName = "project-title" >
113+ < TextTruncate
114+ containerClassName = "project-description"
115+ line = { ! matches ? 2 : 5 }
116+ truncateText = "..."
117+ text = { attr . title }
118+ />
119+ </ h4 >
112120 { phaseEditable && ! this . state . isEditting && ( < a styleName = "edit-btn" onClick = { this . toggleEditView } />
113121 ) }
114122 </ div >
You can’t perform that action at this time.
0 commit comments