mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-25 08:30: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
|
||||
src={url}
|
||||
alt={filename}
|
||||
width={metadata.width}
|
||||
height={metadata.height}
|
||||
data-spoiler={spoiler}
|
||||
data-has-content={hasContent}
|
||||
className={classNames(styles.attachment, styles.image)}
|
||||
|
|
Loading…
Reference in a new issue