MediaAttachmentGrid: fix placeholder aspect-ratio
All checks were successful
/ depoly (push) Successful in 1m4s
All checks were successful
/ depoly (push) Successful in 1m4s
This commit is contained in:
parent
b79f5f94bf
commit
a97963001a
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue