From: Jay Sitter Date: Tue, 27 Jun 2023 01:05:50 +0000 (-0400) Subject: fix: Fix alignment of preview mini-overlay buttons on thumbs X-Git-Url: http://these/git/readmes/README.ja.md?a=commitdiff_plain;h=ee84634a73e2904f39bc7bb1b46fc102778ca156;p=lemmy-ui.git fix: Fix alignment of preview mini-overlay buttons on thumbs --- diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index f80cb97..3d373ee 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -49,7 +49,7 @@ import { PurgeType, VoteContentType, } from "../../interfaces"; -import { mdNoImages, mdToHtml, mdToHtmlInline } from "../../markdown"; +import { mdToHtml, mdToHtmlInline } from "../../markdown"; import { I18NextService, UserService } from "../../services"; import { setupTippy } from "../../tippy"; import { Icon, PurgeWarning, Spinner } from "../common/icon"; @@ -328,16 +328,19 @@ export class PostListing extends Component { if (!this.props.hideImage && url && isImage(url) && this.imageSrc) { return ( - {this.imgThumb(this.imageSrc)} - - + + ); } else if (!this.props.hideImage && url && thumbnail && this.imageSrc) { return ( @@ -348,7 +351,10 @@ export class PostListing extends Component { title={url} > {this.imgThumb(this.imageSrc)} - + ); } else if (url) {