]> Untitled Git - lemmy-ui.git/commitdiff
fix: Tidy up divs
authorJay Sitter <jay@jaysitter.com>
Sun, 25 Jun 2023 23:29:14 +0000 (19:29 -0400)
committerJay Sitter <jay@jaysitter.com>
Sun, 25 Jun 2023 23:29:31 +0000 (19:29 -0400)
src/shared/components/common/vote-buttons.tsx
src/shared/components/post/post-listing.tsx

index 09799188db515bf4945b101bfd0ce517be6dfb94..1b4f4890b0a5b154eba5613af31759acef305541 100644 (file)
@@ -174,7 +174,7 @@ export class VoteButtons extends Component<VoteButtonsProps, VoteButtonsState> {
 
   render() {
     return (
-      <div className={`vote-bar col-1 pe-0 small text-center`}>
+      <div className={`vote-bar pe-0 small text-center`}>
         <button
           type="button"
           className={`btn-animate btn btn-link p-0 ${
index f4fc8fea0979c37ff587218961624277011d6963..70ec2c86a2573115bb953430fb96f1db79897111 100644 (file)
@@ -1407,30 +1407,28 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
         <div className="d-none d-sm-block">
           <article className="row post-container">
             {!this.props.viewOnly && (
-              <VoteButtons
-                voteContentType={VoteContentType.Post}
-                id={this.postView.post.id}
-                onVote={this.props.onPostVote}
-                enableDownvotes={this.props.enableDownvotes}
-                counts={this.postView.counts}
-                my_vote={this.postView.my_vote}
-              />
+              <div className="col-1">
+                <VoteButtons
+                  voteContentType={VoteContentType.Post}
+                  id={this.postView.post.id}
+                  onVote={this.props.onPostVote}
+                  enableDownvotes={this.props.enableDownvotes}
+                  counts={this.postView.counts}
+                  my_vote={this.postView.my_vote}
+                />
+              </div>
             )}
             <div className="col-sm-1 col-md-2 pe-0 post-media">
               <div className="">{this.thumbnail()}</div>
             </div>
             <div className="col-12 col-sm-8 col-md-9 ">
-              <div className="row">
-                <div className="col-12">
-                  {this.postTitleLine()}
-                  {this.createdLine()}
-                  {this.showBodyPreview()}
-                  {this.commentsLine()}
-                  {this.duplicatesLine()}
-                  {this.userActionsLine()}
-                  {this.removeAndBanDialogs()}
-                </div>
-              </div>
+              {this.postTitleLine()}
+              {this.createdLine()}
+              {this.showBodyPreview()}
+              {this.commentsLine()}
+              {this.duplicatesLine()}
+              {this.userActionsLine()}
+              {this.removeAndBanDialogs()}
             </div>
           </article>
         </div>