diff options
author | kibigo! <marrus-sh@users.noreply.github.com> | 2017-11-18 11:05:23 -0800 |
---|---|---|
committer | kibigo! <marrus-sh@users.noreply.github.com> | 2017-11-18 11:05:23 -0800 |
commit | 672ace5a202caf483c558a06b7e694ece12bb91b (patch) | |
tree | c05397a3f0514315b17f3e3427e02beb8194465f /app/javascript/themes/glitch/components/status.js | |
parent | f51f7b0e0617301b95df507dd4a11a6d03006049 (diff) |
Media styling
Diffstat (limited to 'app/javascript/themes/glitch/components/status.js')
-rw-r--r-- | app/javascript/themes/glitch/components/status.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/javascript/themes/glitch/components/status.js b/app/javascript/themes/glitch/components/status.js index cf2fbe21e..e2ef47f5f 100644 --- a/app/javascript/themes/glitch/components/status.js +++ b/app/javascript/themes/glitch/components/status.js @@ -228,6 +228,10 @@ export default class Status extends ImmutablePureComponent { this.props.onMoveDown(this.props.status.get('id')); } + handleRef = c => { + this.node = c; + } + renderLoadingMediaGallery () { return <div className='media_gallery' style={{ height: '110px' }} />; } @@ -238,6 +242,7 @@ export default class Status extends ImmutablePureComponent { render () { const { + handleRef, parseClick, setExpansion, } = this; @@ -389,6 +394,7 @@ export default class Status extends ImmutablePureComponent { ), }} {...selectorAttribs} + ref={handleRef} > {prepend && account ? ( <StatusPrepend |