Fix modals sizing and add animation to it, fix #140 by only making the text of
status clickable (this also fixes multiple dropdown being openable at the same time)
This commit is contained in:
parent
0320ea4b85
commit
82fd74d101
12 changed files with 73 additions and 41 deletions
|
@ -13,7 +13,8 @@ const StatusContent = React.createClass({
|
|||
},
|
||||
|
||||
propTypes: {
|
||||
status: ImmutablePropTypes.map.isRequired
|
||||
status: ImmutablePropTypes.map.isRequired,
|
||||
onClick: React.PropTypes.func
|
||||
},
|
||||
|
||||
mixins: [PureRenderMixin],
|
||||
|
@ -61,7 +62,7 @@ const StatusContent = React.createClass({
|
|||
|
||||
render () {
|
||||
const content = { __html: emojione.unicodeToImage(this.props.status.get('content')) };
|
||||
return <div className='status__content' dangerouslySetInnerHTML={content} />;
|
||||
return <div className='status__content' style={{ cursor: 'pointer' }} dangerouslySetInnerHTML={content} onClick={this.props.onClick} />;
|
||||
},
|
||||
|
||||
});
|
||||
|
|
Reference in a new issue