Fix some scrolling issues (#6851)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
039271394e
Коммит
dd78a3f1fa
@@ -70,7 +70,7 @@ export default class PostBody extends React.PureComponent {
|
|||||||
let comment = '';
|
let comment = '';
|
||||||
let postClass = '';
|
let postClass = '';
|
||||||
|
|
||||||
if (parentPost && this.props.parentPostUser) {
|
if (parentPost) {
|
||||||
const profile = this.props.parentPostUser;
|
const profile = this.props.parentPostUser;
|
||||||
|
|
||||||
let apostrophe = '';
|
let apostrophe = '';
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ export default class PostBodyAdditionalContent extends React.PureComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const link = Utils.extractFirstLink(this.props.post.message);
|
const link = Utils.extractFirstLink(this.props.post.message);
|
||||||
if (link && Utils.isFeatureEnabled(Constants.PRE_RELEASE_FEATURES.EMBED_PREVIEW)) {
|
if (link && Utils.isFeatureEnabled(Constants.PRE_RELEASE_FEATURES.EMBED_PREVIEW) && global.window.mm_config.EnableLinkPreviews === 'true') {
|
||||||
return (
|
return (
|
||||||
<PostAttachmentOpenGraph
|
<PostAttachmentOpenGraph
|
||||||
link={link}
|
link={link}
|
||||||
|
|||||||
@@ -297,7 +297,6 @@ export default class PostList extends React.PureComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
handleScroll = () => {
|
handleScroll = () => {
|
||||||
this.hasScrolledToFocusedPost = true;
|
|
||||||
this.hasScrolled = true;
|
this.hasScrolled = true;
|
||||||
this.previousScrollTop = this.refs.postlist.scrollTop;
|
this.previousScrollTop = this.refs.postlist.scrollTop;
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user