From: Tim Düsterhus Date: Tue, 27 Apr 2021 14:16:56 +0000 (+0200) Subject: Add width / height to attachments in attachments.tpl X-Git-Tag: 5.4.0_Alpha_1~35^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=258ebd0cc4346d179d147c65131273843dfcb2fc;p=GitHub%2FWoltLab%2FWCF.git Add width / height to attachments in attachments.tpl --- diff --git a/com.woltlab.wcf/templates/attachments.tpl b/com.woltlab.wcf/templates/attachments.tpl index 5faadfbfc3..6c89fd1497 100644 --- a/com.woltlab.wcf/templates/attachments.tpl +++ b/com.woltlab.wcf/templates/attachments.tpl @@ -15,9 +15,27 @@
{if $attachment->hasThumbnail()} - thumbnailWidth >= ATTACHMENT_THUMBNAIL_WIDTH && $attachment->thumbnailHeight >= ATTACHMENT_THUMBNAIL_HEIGHT} class="attachmentThumbnailImageScalable"{/if}> + thumbnailWidth >= ATTACHMENT_THUMBNAIL_WIDTH && $attachment->thumbnailHeight >= ATTACHMENT_THUMBNAIL_HEIGHT} + class="attachmentThumbnailImageScalable" + {/if} + width="{$attachment->thumbnailWidth}" + height="{$attachment->thumbnailHeight}" + loading="lazy" + > {else} - width >= ATTACHMENT_THUMBNAIL_WIDTH && $attachment->height >= ATTACHMENT_THUMBNAIL_HEIGHT} class="attachmentThumbnailImageScalable"{/if}> + width >= ATTACHMENT_THUMBNAIL_WIDTH && $attachment->height >= ATTACHMENT_THUMBNAIL_HEIGHT} + class="attachmentThumbnailImageScalable" + {/if} + width="{$attachment->width}" + height="{$attachment->height}" + loading="lazy" + > {/if}