Only need focal positioning if not show original media

pull/1/head
Lim Chee Aun 2022-12-10 21:58:40 +08:00
rodzic b3941462d6
commit 5797b9bc38
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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