MediaAttachmentGrid: fix placeholder aspect-ratio
All checks were successful
/ depoly (push) Successful in 1m4s

This commit is contained in:
thislight 2024-10-10 19:49:51 +08:00
parent b79f5f94bf
commit a97963001a
No known key found for this signature in database
GPG key ID: A50F9451AC56A63E

View file

@ -89,7 +89,7 @@ const MediaAttachmentGrid: Component<{
const realHeight = height && height > maxHeight ? maxHeight : height;
const realWidth =
width && height && height > maxHeight
? maxHeight / (aspectRatio ?? 1)
? maxHeight * (aspectRatio ?? 1)
: width;
const style = () =>
loaded()