From b8216847334349c66f5c3199efc94f4d73447f9d Mon Sep 17 00:00:00 2001 From: bree <me@bree.dev> Date: Sat, 3 Jul 2021 01:47:46 -0400 Subject: [PATCH] image attachments now have their width and height properly set --- src/components/common/messaging/attachments/Attachment.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/common/messaging/attachments/Attachment.tsx b/src/components/common/messaging/attachments/Attachment.tsx index 342a598..15c4253 100644 --- a/src/components/common/messaging/attachments/Attachment.tsx +++ b/src/components/common/messaging/attachments/Attachment.tsx @@ -40,6 +40,8 @@ export default function Attachment({ attachment, hasContent }: Props) { <img src={url} alt={filename} + width={metadata.width} + height={metadata.height} data-spoiler={spoiler} data-has-content={hasContent} className={classNames(styles.attachment, styles.image)} -- GitLab