forked from abner/for-legacy-web
image attachments now have their width and height properly set
This commit is contained in:
@@ -40,6 +40,8 @@ export default function Attachment({ attachment, hasContent }: Props) {
|
|||||||
<img
|
<img
|
||||||
src={url}
|
src={url}
|
||||||
alt={filename}
|
alt={filename}
|
||||||
|
width={metadata.width}
|
||||||
|
height={metadata.height}
|
||||||
data-spoiler={spoiler}
|
data-spoiler={spoiler}
|
||||||
data-has-content={hasContent}
|
data-has-content={hasContent}
|
||||||
className={classNames(styles.attachment, styles.image)}
|
className={classNames(styles.attachment, styles.image)}
|
||||||
|
|||||||
Reference in New Issue
Block a user