Hide downvote on mobile when downvotes disabled

To address #79.
This commit is contained in:
m52go 2020-11-17 19:15:55 +00:00 committed by GitHub
parent 14aef0e0b3
commit f53c796a70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -562,7 +562,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
</svg>
{this.state.upvotes}
</button>
<button
{this.props.enableDownvotes && (<button
className={`ml-2 btn-animate btn py-0 pl-1 ${
this.state.my_vote == -1 ? 'text-danger' : 'text-muted'
}`}
@ -576,6 +576,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
<span>{this.state.downvotes}</span>
)}
</button>
)}
</div>
<button
class="btn btn-link btn-animate text-muted py-0 pl-1 pr-0"