fix: Fix post listing vote/image/title widths

This commit is contained in:
Jay Sitter 2023-06-25 20:00:43 -04:00
parent a90c34eb7f
commit 271425b963

View file

@ -1407,7 +1407,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
<div className="d-none d-sm-block"> <div className="d-none d-sm-block">
<article className="row post-container"> <article className="row post-container">
{!this.props.viewOnly && ( {!this.props.viewOnly && (
<div className="col-1"> <div className="col-auto">
<VoteButtons <VoteButtons
voteContentType={VoteContentType.Post} voteContentType={VoteContentType.Post}
id={this.postView.post.id} id={this.postView.post.id}
@ -1418,10 +1418,12 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
/> />
</div> </div>
)} )}
<div className="col-sm-2 pe-0 post-media"> <div className="col-sm-10">
<div className="row">
<div className="col-sm-3 col-lg-2 pe-0 post-media">
<div className="">{this.thumbnail()}</div> <div className="">{this.thumbnail()}</div>
</div> </div>
<div className="col-12 col-sm-9"> <div className="col-12 col-sm-9 col-lg-10">
{this.postTitleLine()} {this.postTitleLine()}
{this.createdLine()} {this.createdLine()}
{this.showBodyPreview()} {this.showBodyPreview()}
@ -1430,6 +1432,8 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
{this.userActionsLine()} {this.userActionsLine()}
{this.removeAndBanDialogs()} {this.removeAndBanDialogs()}
</div> </div>
</div>
</div>
</article> </article>
</div> </div>
</> </>