From a97963001ad376a90b6afd322c916022a4f57594 Mon Sep 17 00:00:00 2001 From: thislight Date: Thu, 10 Oct 2024 19:49:51 +0800 Subject: [PATCH] MediaAttachmentGrid: fix placeholder aspect-ratio --- src/timelines/MediaAttachmentGrid.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timelines/MediaAttachmentGrid.tsx b/src/timelines/MediaAttachmentGrid.tsx index 0fa0b1c..567e67c 100644 --- a/src/timelines/MediaAttachmentGrid.tsx +++ b/src/timelines/MediaAttachmentGrid.tsx @@ -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()