mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-01 11:20:58 -05:00
image attachments now have their width and height properly set
This commit is contained in:
parent
036e9a330a
commit
b821684733
1 changed files with 2 additions and 0 deletions
|
@ -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)}
|
||||||
|
|
Loading…
Reference in a new issue