diff --git a/.gitignore b/.gitignore index 04138bb0..e77dc4ef 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,10 @@ lib-cov *.out *.pid *.gz - +*.sublime-project +*.sublime-workspace + + pids logs results diff --git a/js/components/ascribe_detail/detail_property.js b/js/components/ascribe_detail/detail_property.js index b2d8170d..f220fc98 100644 --- a/js/components/ascribe_detail/detail_property.js +++ b/js/components/ascribe_detail/detail_property.js @@ -12,7 +12,7 @@ let DetailProperty = React.createClass({ separator: React.PropTypes.string, labelClassName: React.PropTypes.string, valueClassName: React.PropTypes.string, - breakWord: React.PropTypes.bool + ellipsis: React.PropTypes.bool }, getDefaultProps() { @@ -25,6 +25,16 @@ let DetailProperty = React.createClass({ render() { let value = this.props.value; + let styles = {}; + + if(this.props.ellipsis) { + styles = { + whiteSpace: 'nowrap', + overflow: 'hidden', + textOverflow: 'ellipsis' + }; + } + if (this.props.children){ value = ( @@ -32,7 +42,9 @@ let DetailProperty = React.createClass({