mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-26 06:11:15 +00:00
Fixing line formatting. (#947)
This commit is contained in:
parent
1b1168d79f
commit
a09b301429
1 changed files with 13 additions and 7 deletions
|
@ -434,15 +434,18 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
let post = this.props.post_view.post;
|
let post = this.props.post_view.post;
|
||||||
return (
|
return (
|
||||||
<Link
|
<Link
|
||||||
className={
|
className={`d-inline-block ${
|
||||||
!post.featured_community && !post.featured_local
|
!post.featured_community && !post.featured_local
|
||||||
? "text-body"
|
? "text-body"
|
||||||
: "text-primary"
|
: "text-primary"
|
||||||
}
|
}`}
|
||||||
to={`/post/${post.id}`}
|
to={`/post/${post.id}`}
|
||||||
title={i18n.t("comments")}
|
title={i18n.t("comments")}
|
||||||
>
|
>
|
||||||
<div dangerouslySetInnerHTML={mdToHtmlInline(post.name)} />
|
<div
|
||||||
|
className="d-inline-block"
|
||||||
|
dangerouslySetInnerHTML={mdToHtmlInline(post.name)}
|
||||||
|
/>
|
||||||
</Link>
|
</Link>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -457,16 +460,19 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
{url ? (
|
{url ? (
|
||||||
this.props.showBody ? (
|
this.props.showBody ? (
|
||||||
<a
|
<a
|
||||||
className={
|
className={`d-inline-block ${
|
||||||
!post.featured_community && !post.featured_local
|
!post.featured_community && !post.featured_local
|
||||||
? "text-body"
|
? "text-body"
|
||||||
: "text-primary"
|
: "text-primary"
|
||||||
}
|
}`}
|
||||||
href={url}
|
href={url}
|
||||||
title={url}
|
title={url}
|
||||||
rel={relTags}
|
rel={relTags}
|
||||||
>
|
>
|
||||||
<div dangerouslySetInnerHTML={mdToHtmlInline(post.name)} />
|
<div
|
||||||
|
className="d-inline-block"
|
||||||
|
dangerouslySetInnerHTML={mdToHtmlInline(post.name)}
|
||||||
|
/>
|
||||||
</a>
|
</a>
|
||||||
) : (
|
) : (
|
||||||
this.postLink
|
this.postLink
|
||||||
|
@ -477,7 +483,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
{(url && isImage(url)) ||
|
{(url && isImage(url)) ||
|
||||||
(post.thumbnail_url && (
|
(post.thumbnail_url && (
|
||||||
<button
|
<button
|
||||||
className="btn btn-link text-monospace text-muted small d-inline-block ml-2"
|
className="btn btn-link text-monospace text-muted small d-inline-block"
|
||||||
data-tippy-content={i18n.t("expand_here")}
|
data-tippy-content={i18n.t("expand_here")}
|
||||||
onClick={linkEvent(this, this.handleImageExpandClick)}
|
onClick={linkEvent(this, this.handleImageExpandClick)}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in a new issue