From 258ebd0cc4346d179d147c65131273843dfcb2fc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 27 Apr 2021 16:16:56 +0200 Subject: [PATCH] Add width / height to attachments in attachments.tpl --- com.woltlab.wcf/templates/attachments.tpl | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) 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} -- 2.20.1