let post = this.props.post_view.post;
return (
<Link
- className={
+ className={`d-inline-block ${
!post.featured_community && !post.featured_local
? "text-body"
: "text-primary"
- }
+ }`}
to={`/post/${post.id}`}
title={i18n.t("comments")}
>
- <div dangerouslySetInnerHTML={mdToHtmlInline(post.name)} />
+ <div
+ className="d-inline-block"
+ dangerouslySetInnerHTML={mdToHtmlInline(post.name)}
+ />
</Link>
);
}
{url ? (
this.props.showBody ? (
<a
- className={
+ className={`d-inline-block ${
!post.featured_community && !post.featured_local
? "text-body"
: "text-primary"
- }
+ }`}
href={url}
title={url}
rel={relTags}
>
- <div dangerouslySetInnerHTML={mdToHtmlInline(post.name)} />
+ <div
+ className="d-inline-block"
+ dangerouslySetInnerHTML={mdToHtmlInline(post.name)}
+ />
</a>
) : (
this.postLink
{(url && isImage(url)) ||
(post.thumbnail_url && (
<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")}
onClick={linkEvent(this, this.handleImageExpandClick)}
>