diff options
author | Reverite <github@reverite.sh> | 2019-07-29 03:04:21 -0700 |
---|---|---|
committer | Reverite <github@reverite.sh> | 2019-07-29 03:04:21 -0700 |
commit | 3013c6cb78358ed8a95a35d5db79608fcb06963f (patch) | |
tree | ffadc3e2d4aef4aa73bbee20de1525f73883c799 /app | |
parent | 2282fcc060109b41a540a7c46b8411c095488dcf (diff) | |
parent | a4a81c5434c73139f7c1d66f2687039237c5208a (diff) |
Merge branch 'glitch' into production
Diffstat (limited to 'app')
-rw-r--r-- | app/javascript/flavours/glitch/components/status_content.js | 10 | ||||
-rw-r--r-- | app/javascript/flavours/glitch/features/lists/index.js | 2 |
2 files changed, 10 insertions, 2 deletions
diff --git a/app/javascript/flavours/glitch/components/status_content.js b/app/javascript/flavours/glitch/components/status_content.js index 650b834de..befbe340f 100644 --- a/app/javascript/flavours/glitch/components/status_content.js +++ b/app/javascript/flavours/glitch/components/status_content.js @@ -26,7 +26,7 @@ export default class StatusContent extends React.PureComponent { }; _updateStatusLinks () { - const node = this.node; + const node = this.contentsNode; if (!node) { return; @@ -161,6 +161,10 @@ export default class StatusContent extends React.PureComponent { this.node = c; } + setContentsRef = (c) => { + this.contentsNode = c; + } + render () { const { status, @@ -241,6 +245,7 @@ export default class StatusContent extends React.PureComponent { <div className={`status__content__spoiler ${!hidden ? 'status__content__spoiler--visible' : ''}`}> <div + ref={this.setContentsRef} style={directionStyle} tabIndex={!hidden ? 0 : null} dangerouslySetInnerHTML={content} @@ -263,6 +268,7 @@ export default class StatusContent extends React.PureComponent { ref={this.setRef} > <div + ref={this.setContentsRef} dangerouslySetInnerHTML={content} lang={status.get('language')} className='status__content__text' @@ -279,7 +285,7 @@ export default class StatusContent extends React.PureComponent { tabIndex='0' ref={this.setRef} > - <div className='status__content__text' dangerouslySetInnerHTML={content} lang={status.get('language')} tabIndex='0' /> + <div ref={this.setContentsRef} className='status__content__text' dangerouslySetInnerHTML={content} lang={status.get('language')} tabIndex='0' /> {media} </div> ); diff --git a/app/javascript/flavours/glitch/features/lists/index.js b/app/javascript/flavours/glitch/features/lists/index.js index bf1b410bb..ad5240bd5 100644 --- a/app/javascript/flavours/glitch/features/lists/index.js +++ b/app/javascript/flavours/glitch/features/lists/index.js @@ -57,6 +57,8 @@ export default class Lists extends ImmutablePureComponent { ); } + const emptyMessage = <FormattedMessage id='empty_column.lists' defaultMessage="You don't have any lists yet. When you create one, it will show up here." />; + return ( <Column icon='bars' heading={intl.formatMessage(messages.heading)}> <ColumnBackButtonSlim /> |