Skip to content

Commit b51839d

Browse files
committed
hide flying new post button on mobile when new post dialog is opened to avoid showing this button under the dialog when we scroll dialog
1 parent bed4c5b commit b51839d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/projects/detail/containers/FeedContainer.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -507,9 +507,11 @@ class FeedView extends React.Component {
507507
</MediaQuery>
508508
{ feeds.map(renderFeed) }
509509
</div>
510-
<MediaQuery maxWidth={768 - 1}>
511-
<ChatButton onClick={this.toggleNewPostMobile} />
512-
</MediaQuery>
510+
{ !isNewPostMobileOpen &&
511+
<MediaQuery maxWidth={768 - 1}>
512+
<ChatButton onClick={this.toggleNewPostMobile} />
513+
</MediaQuery>
514+
}
513515
{ isNewPostMobileOpen &&
514516
<NewPostMobile
515517
statusTitle="NEW STATUS"

0 commit comments

Comments
 (0)