mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 12:21:13 +00:00
make suggested changes
This commit is contained in:
parent
90ed113ee4
commit
a7cadc63ee
1 changed files with 4 additions and 6 deletions
|
@ -401,11 +401,11 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
createdLine({ extraClasses = "" }: { extraClasses?: string }) {
|
createdLine() {
|
||||||
const post_view = this.postView;
|
const post_view = this.postView;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={`small ${extraClasses}`}>
|
<div className="small mb-1 mb-md-0">
|
||||||
<span className="me-1">
|
<span className="me-1">
|
||||||
<PersonListing person={post_view.creator} />
|
<PersonListing person={post_view.creator} />
|
||||||
</span>
|
</span>
|
||||||
|
@ -1374,9 +1374,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
<div className="d-block d-sm-none">
|
<div className="d-block d-sm-none">
|
||||||
<article className="row post-container">
|
<article className="row post-container">
|
||||||
<div className="col-12">
|
<div className="col-12">
|
||||||
{this.createdLine({
|
{this.createdLine()}
|
||||||
extraClasses: "mb-1",
|
|
||||||
})}
|
|
||||||
|
|
||||||
{/* If it has a thumbnail, do a right aligned thumbnail */}
|
{/* If it has a thumbnail, do a right aligned thumbnail */}
|
||||||
{this.mobileThumbnail()}
|
{this.mobileThumbnail()}
|
||||||
|
@ -1410,7 +1408,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
</div>
|
</div>
|
||||||
<div className="col flex-grow-1">
|
<div className="col flex-grow-1">
|
||||||
{this.postTitleLine()}
|
{this.postTitleLine()}
|
||||||
{this.createdLine({})}
|
{this.createdLine()}
|
||||||
{this.commentsLine()}
|
{this.commentsLine()}
|
||||||
{this.duplicatesLine()}
|
{this.duplicatesLine()}
|
||||||
{this.removeAndBanDialogs()}
|
{this.removeAndBanDialogs()}
|
||||||
|
|
Loading…
Reference in a new issue