Skip to content

Commit

Permalink
feat(ArticleDetail): show comment area in mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
wlliaml committed Jan 16, 2024
1 parent bc643ba commit 1b76014
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/views/ArticleDetail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -334,18 +334,18 @@ const BaseArticleDetail = ({

<Media at="sm">
<AuthorSidebar article={article} />
</Media>

<Waypoint
onEnter={() => {
setShowCommentToolbar(true)
}}
onLeave={() => setShowCommentToolbar(false)}
>
<section className={styles.block}>
<DynamicResponse id={article.id} lock={!canReadFullContent} />
</section>
</Waypoint>
<Waypoint
onEnter={() => {
setShowCommentToolbar(true)
}}
onLeave={() => setShowCommentToolbar(false)}
>
<section className={styles.block}>
<DynamicResponse id={article.id} lock={!canReadFullContent} />
</section>
</Waypoint>
</Media>
</section>

<Media at="sm">
Expand Down

0 comments on commit 1b76014

Please sign in to comment.