Skip to content

Commit

Permalink
Move comment input in reader-full-post view above related posts (#95068)
Browse files Browse the repository at this point in the history
  • Loading branch information
holdercp authored Oct 1, 2024
1 parent 4313f0b commit e912558
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions client/blocks/reader-full-post/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,24 @@ export class FullPostView extends Component {

{ ! isLoading && <ReaderPerformanceTrackerStop /> }

<div className="reader-full-post__comments-wrapper" ref={ this.commentsWrapper }>
{ shouldShowComments( post ) && (
<Comments
showNestingReplyArrow
post={ post }
initialSize={ startingCommentId ? commentCount : 10 }
pageSize={ 25 }
startingCommentId={ startingCommentId }
commentCount={ commentCount }
maxDepth={ 1 }
commentsFilterDisplay={ COMMENTS_FILTER_ALL }
showConversationFollowButton
shouldPollForNewComments={ config.isEnabled( 'reader/comment-polling' ) }
shouldHighlightNew
/>
) }
</div>

{ showRelatedPosts && (
<RelatedPostsFromSameSite
siteId={ +post.site_ID }
Expand All @@ -660,24 +678,6 @@ export class FullPostView extends Component {
/>
) }

<div className="reader-full-post__comments-wrapper" ref={ this.commentsWrapper }>
{ shouldShowComments( post ) && (
<Comments
showNestingReplyArrow
post={ post }
initialSize={ startingCommentId ? commentCount : 10 }
pageSize={ 25 }
startingCommentId={ startingCommentId }
commentCount={ commentCount }
maxDepth={ 1 }
commentsFilterDisplay={ COMMENTS_FILTER_ALL }
showConversationFollowButton
shouldPollForNewComments={ config.isEnabled( 'reader/comment-polling' ) }
shouldHighlightNew
/>
) }
</div>

{ showRelatedPosts && (
<RelatedPostsFromOtherSites
siteId={ +post.site_ID }
Expand Down

0 comments on commit e912558

Please sign in to comment.