Skip to content

Commit

Permalink
Fixing post listing rows.
Browse files Browse the repository at this point in the history
  • Loading branch information
dessalines committed Aug 24, 2019
1 parent 9fd5240 commit 1590298
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/components/post-listing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {

render() {
return (
<div class="row col-12">
<div class="row">
{!this.state.showEdit
? this.listing()
: <PostForm post={this.props.post} onEdit={this.handleEditPost} onCancel={this.handleEditCancel}/>
Expand All @@ -58,7 +58,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
listing() {
let post = this.props.post;
return (
<div class="listing">
<div class="listing col-12">
<div className={`vote-bar mr-1 float-left small text-center ${this.props.viewOnly && 'no-click'}`}>
<button className={`btn btn-sm p-0 ${post.my_vote == 1 ? 'text-info' : 'text-muted'}`} onClick={linkEvent(this, this.handlePostLike)}>
<svg class="icon upvote"><use xlinkHref="#icon-arrow-up"></use></svg>
Expand Down

0 comments on commit 1590298

Please sign in to comment.