mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-21 01:33:17 +00:00
Highlight newly added replies in thread view (#36237)
This commit is contained in:
parent
23a69e3bd7
commit
059bf1e980
3 changed files with 28 additions and 1 deletions
|
|
@ -118,6 +118,7 @@ class Status extends ImmutablePureComponent {
|
|||
unread: PropTypes.bool,
|
||||
showThread: PropTypes.bool,
|
||||
isQuotedPost: PropTypes.bool,
|
||||
shouldHighlightOnMount: PropTypes.bool,
|
||||
getScrollPosition: PropTypes.func,
|
||||
updateScrollBottom: PropTypes.func,
|
||||
cacheMediaWidth: PropTypes.func,
|
||||
|
|
@ -567,6 +568,7 @@ class Status extends ImmutablePureComponent {
|
|||
'status--first-in-thread': previousId && (!connectUp || connectToRoot), muted: this.props.muted,
|
||||
'status--is-quote': isQuotedPost,
|
||||
'status--has-quote': !!status.get('quote'),
|
||||
'status--highlighted-entry': this.props.shouldHighlightOnMount,
|
||||
})
|
||||
}
|
||||
data-id={status.get('id')}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue