image attachments now have their width and height properly set

This commit is contained in:
bree 2021-07-03 01:47:46 -04:00
parent 036e9a330a
commit b821684733
No known key found for this signature in database
GPG key ID: 1B2E56B9EC985B96

View file

@ -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)}