From fd47639beffee5d39b01bec05bef459882bfade2 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()