From 5797b9bc38e74944d5f8e6e81b2fb057819effe9 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sat, 10 Dec 2022 21:58:40 +0800 Subject: [PATCH] Only need focal positioning if not show original media --- src/components/status.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/status.jsx b/src/components/status.jsx index ba6c29da..a454047d 100644 --- a/src/components/status.jsx +++ b/src/components/status.jsx @@ -60,7 +60,7 @@ function Media({ media, showOriginal, onClick }) { backgroundImage: `url(${previewUrl})`, backgroundSize: 'contain', backgroundRepeat: 'no-repeat', - backgroundPosition: focalBackgroundPosition || 'center', + backgroundPosition: 'center', aspectRatio: `${width}/${height}`, width, height,