Only need focal positioning if not show original media

This commit is contained in:
Lim Chee Aun 2022-12-10 21:58:40 +08:00
parent b3941462d6
commit 5797b9bc38

View file

@ -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,